Instructions to use clam004/oct30_test2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use clam004/oct30_test2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="clam004/oct30_test2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("clam004/oct30_test2") model = AutoModelForCausalLM.from_pretrained("clam004/oct30_test2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use clam004/oct30_test2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "clam004/oct30_test2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "clam004/oct30_test2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/clam004/oct30_test2
- SGLang
How to use clam004/oct30_test2 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 "clam004/oct30_test2" \ --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": "clam004/oct30_test2", "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 "clam004/oct30_test2" \ --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": "clam004/oct30_test2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use clam004/oct30_test2 with Docker Model Runner:
docker model run hf.co/clam004/oct30_test2
Upload tokenizer
Browse files- special_tokens_map.json +0 -3
- tokenizer.json +1 -1
- tokenizer_config.json +2 -4
special_tokens_map.json
CHANGED
|
@@ -1,7 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"additional_special_tokens": [
|
| 3 |
-
"<|endoftext|>"
|
| 4 |
-
],
|
| 5 |
"bos_token": "<|endoftext|>",
|
| 6 |
"eos_token": "<|endoftext|>",
|
| 7 |
"pad_token": "<|endoftext|>",
|
|
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
| 2 |
"bos_token": "<|endoftext|>",
|
| 3 |
"eos_token": "<|endoftext|>",
|
| 4 |
"pad_token": "<|endoftext|>",
|
tokenizer.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
"single_word": false,
|
| 10 |
"lstrip": false,
|
| 11 |
"rstrip": false,
|
| 12 |
-
"normalized":
|
| 13 |
"special": true
|
| 14 |
}
|
| 15 |
],
|
|
|
|
| 9 |
"single_word": false,
|
| 10 |
"lstrip": false,
|
| 11 |
"rstrip": false,
|
| 12 |
+
"normalized": true,
|
| 13 |
"special": true
|
| 14 |
}
|
| 15 |
],
|
tokenizer_config.json
CHANGED
|
@@ -5,15 +5,13 @@
|
|
| 5 |
"50256": {
|
| 6 |
"content": "<|endoftext|>",
|
| 7 |
"lstrip": false,
|
| 8 |
-
"normalized":
|
| 9 |
"rstrip": false,
|
| 10 |
"single_word": false,
|
| 11 |
"special": true
|
| 12 |
}
|
| 13 |
},
|
| 14 |
-
"additional_special_tokens": [
|
| 15 |
-
"<|endoftext|>"
|
| 16 |
-
],
|
| 17 |
"bos_token": "<|endoftext|>",
|
| 18 |
"clean_up_tokenization_spaces": true,
|
| 19 |
"eos_token": "<|endoftext|>",
|
|
|
|
| 5 |
"50256": {
|
| 6 |
"content": "<|endoftext|>",
|
| 7 |
"lstrip": false,
|
| 8 |
+
"normalized": true,
|
| 9 |
"rstrip": false,
|
| 10 |
"single_word": false,
|
| 11 |
"special": true
|
| 12 |
}
|
| 13 |
},
|
| 14 |
+
"additional_special_tokens": [],
|
|
|
|
|
|
|
| 15 |
"bos_token": "<|endoftext|>",
|
| 16 |
"clean_up_tokenization_spaces": true,
|
| 17 |
"eos_token": "<|endoftext|>",
|