Text Generation
Transformers
Safetensors
PyTorch
mistral
smarter
code
chemistry
biology
finance
legal
art
Mixture of Experts
Merge
text-generation-inference
music
climate
medical
673_trillion_parameters
Instructions to use ZeppelinCorp/Charm_15 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ZeppelinCorp/Charm_15 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ZeppelinCorp/Charm_15")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ZeppelinCorp/Charm_15") model = AutoModelForCausalLM.from_pretrained("ZeppelinCorp/Charm_15", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ZeppelinCorp/Charm_15 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ZeppelinCorp/Charm_15" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ZeppelinCorp/Charm_15", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ZeppelinCorp/Charm_15
- SGLang
How to use ZeppelinCorp/Charm_15 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 "ZeppelinCorp/Charm_15" \ --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": "ZeppelinCorp/Charm_15", "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 "ZeppelinCorp/Charm_15" \ --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": "ZeppelinCorp/Charm_15", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ZeppelinCorp/Charm_15 with Docker Model Runner:
docker model run hf.co/ZeppelinCorp/Charm_15
Create tokenizer.json
Browse files- tokenizer.json +45 -0
tokenizer.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"model": "BPE",
|
| 4 |
+
"vocab": {
|
| 5 |
+
"<|begoftext|>": 0,
|
| 6 |
+
"<|endoftext|>": 1,
|
| 7 |
+
"<pad>": 2,
|
| 8 |
+
"<unk>": 3,
|
| 9 |
+
"the": 4,
|
| 10 |
+
"a": 5,
|
| 11 |
+
"and": 6,
|
| 12 |
+
"to": 7,
|
| 13 |
+
"of": 8,
|
| 14 |
+
"in": 9,
|
| 15 |
+
"I": 10,
|
| 16 |
+
"is": 11,
|
| 17 |
+
"it": 12,
|
| 18 |
+
".": 13,
|
| 19 |
+
",": 14,
|
| 20 |
+
"th": 15,
|
| 21 |
+
"an": 16,
|
| 22 |
+
"ing": 17,
|
| 23 |
+
"er": 18,
|
| 24 |
+
"on": 19
|
| 25 |
+
},
|
| 26 |
+
"merges": [
|
| 27 |
+
"t h",
|
| 28 |
+
"th e",
|
| 29 |
+
"a n",
|
| 30 |
+
"a nd",
|
| 31 |
+
"i n",
|
| 32 |
+
"o f",
|
| 33 |
+
"to k",
|
| 34 |
+
"i s",
|
| 35 |
+
"in g",
|
| 36 |
+
"e r",
|
| 37 |
+
"o n"
|
| 38 |
+
],
|
| 39 |
+
"special_tokens": {
|
| 40 |
+
"pad_token": "<pad>",
|
| 41 |
+
"bos_token": "<|begoftext|>",
|
| 42 |
+
"eos_token": "<|endoftext|>",
|
| 43 |
+
"unk_token": "<unk>"
|
| 44 |
+
}
|
| 45 |
+
}
|