Instructions to use voidful/llm-codec-librispeech with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use voidful/llm-codec-librispeech with PEFT:
Task type is invalid.
- Transformers
How to use voidful/llm-codec-librispeech with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="voidful/llm-codec-librispeech")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("voidful/llm-codec-librispeech", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use voidful/llm-codec-librispeech with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "voidful/llm-codec-librispeech" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "voidful/llm-codec-librispeech", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/voidful/llm-codec-librispeech
- SGLang
How to use voidful/llm-codec-librispeech 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 "voidful/llm-codec-librispeech" \ --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": "voidful/llm-codec-librispeech", "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 "voidful/llm-codec-librispeech" \ --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": "voidful/llm-codec-librispeech", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use voidful/llm-codec-librispeech with Docker Model Runner:
docker model run hf.co/voidful/llm-codec-librispeech
Training completed: lora mode
Browse files- tokenizer_config.json +4 -0
tokenizer_config.json
CHANGED
|
@@ -164071,9 +164071,13 @@
|
|
| 164071 |
"eos_token": "<|im_end|>",
|
| 164072 |
"errors": "replace",
|
| 164073 |
"extra_special_tokens": {},
|
|
|
|
| 164074 |
"model_max_length": 1010000,
|
| 164075 |
"pad_token": "<|endoftext|>",
|
| 164076 |
"split_special_tokens": false,
|
|
|
|
| 164077 |
"tokenizer_class": "Qwen2Tokenizer",
|
|
|
|
|
|
|
| 164078 |
"unk_token": null
|
| 164079 |
}
|
|
|
|
| 164071 |
"eos_token": "<|im_end|>",
|
| 164072 |
"errors": "replace",
|
| 164073 |
"extra_special_tokens": {},
|
| 164074 |
+
"max_length": 4096,
|
| 164075 |
"model_max_length": 1010000,
|
| 164076 |
"pad_token": "<|endoftext|>",
|
| 164077 |
"split_special_tokens": false,
|
| 164078 |
+
"stride": 0,
|
| 164079 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 164080 |
+
"truncation_side": "right",
|
| 164081 |
+
"truncation_strategy": "longest_first",
|
| 164082 |
"unk_token": null
|
| 164083 |
}
|