Text Generation
Transformers
Safetensors
English
notoken_gen55
notokenlm
byte-level
tokenizer-free
hybrid
hierarchical
code
code-generation
custom_code
Instructions to use VeroLM/NoTokenLM-CodeGen-5.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VeroLM/NoTokenLM-CodeGen-5.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="VeroLM/NoTokenLM-CodeGen-5.5", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("VeroLM/NoTokenLM-CodeGen-5.5", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use VeroLM/NoTokenLM-CodeGen-5.5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VeroLM/NoTokenLM-CodeGen-5.5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VeroLM/NoTokenLM-CodeGen-5.5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/VeroLM/NoTokenLM-CodeGen-5.5
- SGLang
How to use VeroLM/NoTokenLM-CodeGen-5.5 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "VeroLM/NoTokenLM-CodeGen-5.5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VeroLM/NoTokenLM-CodeGen-5.5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "VeroLM/NoTokenLM-CodeGen-5.5" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VeroLM/NoTokenLM-CodeGen-5.5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use VeroLM/NoTokenLM-CodeGen-5.5 with Docker Model Runner:
docker model run hf.co/VeroLM/NoTokenLM-CodeGen-5.5
Upload config.json
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ "model_type": "notoken_gen55", "architectures": [ "NoTokenGen55ForCausalLM" ], "auto_map": { "AutoConfig": "configuration_notoken_gen55.NoTokenGen55Config", "AutoModelForCausalLM": "modeling_notoken_gen55.NoTokenGen55ForCausalLM" }, "torch_dtype": "float32", "d": 768, "n_block": 5, "pattern": [ "R", "A", "R", "R" ], "ffn": 1792, "head_dim": 64, "lora_decay": 64, "lora_a": 64, "lora_v": 64, "lora_g": 128, "attn_gate": true, "qk_norm": true, "attn_block": 192, "ln_scale": true, "d_loc": 256, "enc_blocks": [ "conv", "conv", "attn" ], "n_dec": 4, "loc_heads": 4, "loc_window": 32, "loc_block": 128, "conv_k": 4, "loc_ffn": 704, "pool_heads": 8, "dec_cross": false, "cross_k": 8, "hash_orders": [ 3, 4, 5, 6, 7, 8 ], "hash_rows": [ 103424, 103424, 103424, 103424, 103424, 103424 ], "hash_dim": 32, "seq_len": 4096, "max_patches": 1536, "patch_target": 6.0, "patch_max_len": 16, "patch_stride": 6, "chunk": 16, "ent_d": 256, "ent_layers": 8, "ent_ffn": 704, "ent_k": 4, "ent_precision": "high", "vocab": 257, "rosa": true, "deepembed": "byte", "de_rows": 65536, "de_dim": 64, "z_loss": 1e-05, "theta": 2.4162991046905518, "training_step": 7662}config.jsonAdded+80