Instructions to use tokeron/TRBLLmaker with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tokeron/TRBLLmaker with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tokeron/TRBLLmaker")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tokeron/TRBLLmaker") model = AutoModelForCausalLM.from_pretrained("tokeron/TRBLLmaker", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use tokeron/TRBLLmaker with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tokeron/TRBLLmaker" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tokeron/TRBLLmaker", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/tokeron/TRBLLmaker
- SGLang
How to use tokeron/TRBLLmaker 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 "tokeron/TRBLLmaker" \ --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": "tokeron/TRBLLmaker", "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 "tokeron/TRBLLmaker" \ --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": "tokeron/TRBLLmaker", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use tokeron/TRBLLmaker with Docker Model Runner:
docker model run hf.co/tokeron/TRBLLmaker
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
- generated_from_trainer
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
license: afl-3.0
|
| 4 |
+
language:
|
| 5 |
+
- eng
|
| 6 |
+
tags:
|
| 7 |
+
- generative-model
|
| 8 |
+
datasets:
|
| 9 |
+
- TRBLLmaker
|
| 10 |
+
model:
|
| 11 |
+
- gpt2
|
| 12 |
+
widget:
|
| 13 |
+
- text:
|
| 14 |
+
artist: Ashe.
|
| 15 |
+
title: Moral of the story.
|
| 16 |
+
lyrics: Some mistakes get made That's alright, that's okay You can think that you're in love When you're really just in pain.
|
| 17 |
+
meaning:
|
| 18 |
+
example_title: "Moral of the story"
|
| 19 |
+
- text:
|
| 20 |
+
artist:
|
| 21 |
+
title:
|
| 22 |
+
lyrics:
|
| 23 |
+
meaning:
|
| 24 |
+
example_title: "Try it yourself"
|
| 25 |
+
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
### About Us
|
| 30 |
+
Created by Mor Ventura and Michael Toker.
|
| 31 |
+
|
| 32 |
---
|
| 33 |
tags:
|
| 34 |
- generated_from_trainer
|