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
File size: 1,347 Bytes
eba2f09 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | {
"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
} |