Instructions to use fableforge-ai/FableForge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fableforge-ai/FableForge with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fableforge-ai/FableForge")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("fableforge-ai/FableForge") model = AutoModelForMultimodalLM.from_pretrained("fableforge-ai/FableForge") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use fableforge-ai/FableForge with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fableforge-ai/FableForge" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fableforge-ai/FableForge", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/fableforge-ai/FableForge
- SGLang
How to use fableforge-ai/FableForge 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 "fableforge-ai/FableForge" \ --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": "fableforge-ai/FableForge", "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 "fableforge-ai/FableForge" \ --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": "fableforge-ai/FableForge", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use fableforge-ai/FableForge with Docker Model Runner:
docker model run hf.co/fableforge-ai/FableForge
fix: add __type to token dicts, add tokenizer_class, fix Configuration Parsing Warning
#2
by King3Djbl - opened
- tokenizer_config.json +8 -4
tokenizer_config.json
CHANGED
|
@@ -7,28 +7,32 @@
|
|
| 7 |
"lstrip": false,
|
| 8 |
"normalized": false,
|
| 9 |
"rstrip": false,
|
| 10 |
-
"single_word": false
|
|
|
|
| 11 |
},
|
| 12 |
"eos_token": {
|
| 13 |
"content": "</s>",
|
| 14 |
"lstrip": false,
|
| 15 |
"normalized": false,
|
| 16 |
"rstrip": false,
|
| 17 |
-
"single_word": false
|
|
|
|
| 18 |
},
|
| 19 |
"unk_token": {
|
| 20 |
"content": "<unk>",
|
| 21 |
"lstrip": false,
|
| 22 |
"normalized": false,
|
| 23 |
"rstrip": false,
|
| 24 |
-
"single_word": false
|
|
|
|
| 25 |
},
|
| 26 |
"pad_token": {
|
| 27 |
"content": "<pad>",
|
| 28 |
"lstrip": false,
|
| 29 |
"normalized": false,
|
| 30 |
"rstrip": false,
|
| 31 |
-
"single_word": false
|
|
|
|
| 32 |
},
|
| 33 |
"model_type": "llama",
|
| 34 |
"model_max_length": 4096,
|
|
|
|
| 7 |
"lstrip": false,
|
| 8 |
"normalized": false,
|
| 9 |
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"__type": "AddedToken"
|
| 12 |
},
|
| 13 |
"eos_token": {
|
| 14 |
"content": "</s>",
|
| 15 |
"lstrip": false,
|
| 16 |
"normalized": false,
|
| 17 |
"rstrip": false,
|
| 18 |
+
"single_word": false,
|
| 19 |
+
"__type": "AddedToken"
|
| 20 |
},
|
| 21 |
"unk_token": {
|
| 22 |
"content": "<unk>",
|
| 23 |
"lstrip": false,
|
| 24 |
"normalized": false,
|
| 25 |
"rstrip": false,
|
| 26 |
+
"single_word": false,
|
| 27 |
+
"__type": "AddedToken"
|
| 28 |
},
|
| 29 |
"pad_token": {
|
| 30 |
"content": "<pad>",
|
| 31 |
"lstrip": false,
|
| 32 |
"normalized": false,
|
| 33 |
"rstrip": false,
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"__type": "AddedToken"
|
| 36 |
},
|
| 37 |
"model_type": "llama",
|
| 38 |
"model_max_length": 4096,
|