Text Generation
Transformers
PyTorch
English
Polish
llama
voicelab
llama-2
trurl
trurl-2
text-generation-inference
Instructions to use Voicelab/trurl-2-13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Voicelab/trurl-2-13b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Voicelab/trurl-2-13b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Voicelab/trurl-2-13b") model = AutoModelForCausalLM.from_pretrained("Voicelab/trurl-2-13b") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Voicelab/trurl-2-13b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Voicelab/trurl-2-13b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Voicelab/trurl-2-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Voicelab/trurl-2-13b
- SGLang
How to use Voicelab/trurl-2-13b 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 "Voicelab/trurl-2-13b" \ --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": "Voicelab/trurl-2-13b", "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 "Voicelab/trurl-2-13b" \ --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": "Voicelab/trurl-2-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Voicelab/trurl-2-13b with Docker Model Runner:
docker model run hf.co/Voicelab/trurl-2-13b
Update README.md
Browse files
README.md
CHANGED
|
@@ -36,8 +36,9 @@ This is the repository for the 13B fine-tuned model, optimized for dialogue use
|
|
| 36 |
|
| 37 |
||Training Data|Params|Content Length|Num. Samples|Num. Tokens|start LR|
|
| 38 |
|---|---|---|---|---|---|---|
|
| 39 |
-
|Trurl 2|*A new mix of private and publicly available online data*|7B|4k|
|
| 40 |
-
|Trurl 2|*A new mix of private and publicly available online data*|13B|4k|970k|1.7b|2.0 x 10<sup>-5</sup>|
|
|
|
|
| 41 |
|
| 42 |
## Training data
|
| 43 |
|
|
@@ -179,6 +180,7 @@ The model was trained by NLP Research Team at Voicelab.ai.
|
|
| 179 |
You can contact us [here](https://voicelab.ai/contact/).
|
| 180 |
|
| 181 |
* [TRURL 13b](https://huggingface.co/Voicelab/trurl-2-13b/)
|
|
|
|
| 182 |
* [TRURL 7b](https://huggingface.co/Voicelab/trurl-2-7b/)
|
| 183 |
* [TRURL DEMO](https://trurl.ai)
|
| 184 |
|
|
|
|
| 36 |
|
| 37 |
||Training Data|Params|Content Length|Num. Samples|Num. Tokens|start LR|
|
| 38 |
|---|---|---|---|---|---|---|
|
| 39 |
+
|Trurl 2|*A new mix of private and publicly available online data without MMLU*|7B|4k|855k|1.19b|2.0 x 10<sup>-5</sup>|
|
| 40 |
+
|Trurl 2|*A new mix of private and publicly available online data with MMLU*|13B|4k|970k|1.7b|2.0 x 10<sup>-5</sup>|
|
| 41 |
+
|Trurl 2 Academic|*A new mix of private and publicly available online data without MMLU*|13B|4k|855k|1.19b|2.0 x 10<sup>-5</sup>|
|
| 42 |
|
| 43 |
## Training data
|
| 44 |
|
|
|
|
| 180 |
You can contact us [here](https://voicelab.ai/contact/).
|
| 181 |
|
| 182 |
* [TRURL 13b](https://huggingface.co/Voicelab/trurl-2-13b/)
|
| 183 |
+
* [TRURL 13b Academic](https://huggingface.co/Voicelab/trurl-2-13b-academic)
|
| 184 |
* [TRURL 7b](https://huggingface.co/Voicelab/trurl-2-7b/)
|
| 185 |
* [TRURL DEMO](https://trurl.ai)
|
| 186 |
|