Instructions to use aeonium/Aeonium-v1-Base-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aeonium/Aeonium-v1-Base-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aeonium/Aeonium-v1-Base-4B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aeonium/Aeonium-v1-Base-4B") model = AutoModelForCausalLM.from_pretrained("aeonium/Aeonium-v1-Base-4B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aeonium/Aeonium-v1-Base-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aeonium/Aeonium-v1-Base-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aeonium/Aeonium-v1-Base-4B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/aeonium/Aeonium-v1-Base-4B
- SGLang
How to use aeonium/Aeonium-v1-Base-4B 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 "aeonium/Aeonium-v1-Base-4B" \ --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": "aeonium/Aeonium-v1-Base-4B", "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 "aeonium/Aeonium-v1-Base-4B" \ --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": "aeonium/Aeonium-v1-Base-4B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use aeonium/Aeonium-v1-Base-4B with Docker Model Runner:
docker model run hf.co/aeonium/Aeonium-v1-Base-4B
Upload tokenizer.json
Browse files- tokenizer.json +1 -27
tokenizer.json
CHANGED
|
@@ -2324,33 +2324,6 @@
|
|
| 2324 |
"rstrip": false,
|
| 2325 |
"normalized": false,
|
| 2326 |
"special": true
|
| 2327 |
-
},
|
| 2328 |
-
{
|
| 2329 |
-
"id": 128000,
|
| 2330 |
-
"content": "<|user|>",
|
| 2331 |
-
"single_word": false,
|
| 2332 |
-
"lstrip": false,
|
| 2333 |
-
"rstrip": false,
|
| 2334 |
-
"normalized": false,
|
| 2335 |
-
"special": true
|
| 2336 |
-
},
|
| 2337 |
-
{
|
| 2338 |
-
"id": 128001,
|
| 2339 |
-
"content": "<|system|>",
|
| 2340 |
-
"single_word": false,
|
| 2341 |
-
"lstrip": false,
|
| 2342 |
-
"rstrip": false,
|
| 2343 |
-
"normalized": false,
|
| 2344 |
-
"special": true
|
| 2345 |
-
},
|
| 2346 |
-
{
|
| 2347 |
-
"id": 128002,
|
| 2348 |
-
"content": "<|assistant|>",
|
| 2349 |
-
"single_word": false,
|
| 2350 |
-
"lstrip": false,
|
| 2351 |
-
"rstrip": false,
|
| 2352 |
-
"normalized": false,
|
| 2353 |
-
"special": true
|
| 2354 |
}
|
| 2355 |
],
|
| 2356 |
"normalizer": null,
|
|
@@ -2393,6 +2366,7 @@
|
|
| 2393 |
"end_of_word_suffix": null,
|
| 2394 |
"fuse_unk": false,
|
| 2395 |
"byte_fallback": false,
|
|
|
|
| 2396 |
"vocab": {
|
| 2397 |
"<|begin_of_text|>": 0,
|
| 2398 |
"<|end_of_text|>": 1,
|
|
|
|
| 2324 |
"rstrip": false,
|
| 2325 |
"normalized": false,
|
| 2326 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2327 |
}
|
| 2328 |
],
|
| 2329 |
"normalizer": null,
|
|
|
|
| 2366 |
"end_of_word_suffix": null,
|
| 2367 |
"fuse_unk": false,
|
| 2368 |
"byte_fallback": false,
|
| 2369 |
+
"ignore_merges": true,
|
| 2370 |
"vocab": {
|
| 2371 |
"<|begin_of_text|>": 0,
|
| 2372 |
"<|end_of_text|>": 1,
|