Instructions to use Blockway/Agens-Volundr-tiny-random with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Blockway/Agens-Volundr-tiny-random with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Blockway/Agens-Volundr-tiny-random") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Blockway/Agens-Volundr-tiny-random", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Blockway/Agens-Volundr-tiny-random with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Blockway/Agens-Volundr-tiny-random" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Blockway/Agens-Volundr-tiny-random", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Blockway/Agens-Volundr-tiny-random
- SGLang
How to use Blockway/Agens-Volundr-tiny-random 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 "Blockway/Agens-Volundr-tiny-random" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Blockway/Agens-Volundr-tiny-random", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Blockway/Agens-Volundr-tiny-random" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Blockway/Agens-Volundr-tiny-random", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Blockway/Agens-Volundr-tiny-random with Docker Model Runner:
docker model run hf.co/Blockway/Agens-Volundr-tiny-random
Restore original tokenizer_class / model_type; regenerate SHA256SUMS
Browse files- SHA256SUMS +1 -1
- tokenizer_config.json +1 -1
SHA256SUMS
CHANGED
|
@@ -6,6 +6,6 @@ bbedc3fda3305820b977265f01b8619d87570a6739de3a5582c3464840f1e57a LICENSE
|
|
| 6 |
a9d356d7bdf1ef4949e3e748e95b8e10ad9d4e2e838eddc38a0a7b6b94d1db8d merges.txt
|
| 7 |
f080e6c885d6f933324655b6c682969169b62221a5645046ea393c08eeae6e66 model.safetensors
|
| 8 |
d036e2f5f284e1c06f5de56f3d33f0e8dd715b7f19d9f7dcc5c2debc7bf11fa3 README.md
|
| 9 |
-
|
| 10 |
234f70af7a12c93d0514c82267bc15a660db645d0b61e4b5999f0865ee977aae tokenizer.json
|
| 11 |
5cb2ec3a6d733c5193eddeb1873027fdb593c883d5888afce520a46938f5afc3 vocab.json
|
|
|
|
| 6 |
a9d356d7bdf1ef4949e3e748e95b8e10ad9d4e2e838eddc38a0a7b6b94d1db8d merges.txt
|
| 7 |
f080e6c885d6f933324655b6c682969169b62221a5645046ea393c08eeae6e66 model.safetensors
|
| 8 |
d036e2f5f284e1c06f5de56f3d33f0e8dd715b7f19d9f7dcc5c2debc7bf11fa3 README.md
|
| 9 |
+
1bcba035ab6ed85f3fbdf600626b7252b0b8e2787dab1a59ad0b591ae9c5e035 tokenizer_config.json
|
| 10 |
234f70af7a12c93d0514c82267bc15a660db645d0b61e4b5999f0865ee977aae tokenizer.json
|
| 11 |
5cb2ec3a6d733c5193eddeb1873027fdb593c883d5888afce520a46938f5afc3 vocab.json
|
tokenizer_config.json
CHANGED
|
@@ -288,7 +288,7 @@
|
|
| 288 |
"model_max_length": 262144,
|
| 289 |
"pad_token": "<|endoftext|>",
|
| 290 |
"split_special_tokens": false,
|
| 291 |
-
"tokenizer_class": "
|
| 292 |
"unk_token": null,
|
| 293 |
"add_bos_token": false,
|
| 294 |
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|
|
|
|
| 288 |
"model_max_length": 262144,
|
| 289 |
"pad_token": "<|endoftext|>",
|
| 290 |
"split_special_tokens": false,
|
| 291 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
| 292 |
"unk_token": null,
|
| 293 |
"add_bos_token": false,
|
| 294 |
"pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
|