Instructions to use yali98/trainer_ver with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yali98/trainer_ver with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yali98/trainer_ver")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("yali98/trainer_ver") model = AutoModelForSeq2SeqLM.from_pretrained("yali98/trainer_ver", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yali98/trainer_ver with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yali98/trainer_ver" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yali98/trainer_ver", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/yali98/trainer_ver
- SGLang
How to use yali98/trainer_ver 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 "yali98/trainer_ver" \ --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": "yali98/trainer_ver", "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 "yali98/trainer_ver" \ --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": "yali98/trainer_ver", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use yali98/trainer_ver with Docker Model Runner:
docker model run hf.co/yali98/trainer_ver
Commit History
-
Training in progress, step 25500
20cd060 -
Training in progress, step 25000
7dddcb9 -
Training in progress, step 24500
44b4d2a -
Training in progress, step 24000
d7e9ead -
Training in progress, step 23500
1b076ea -
Training in progress, step 23000
8fcfd80 -
Training in progress, step 22500
7c274d8 -
Training in progress, step 22000
4b15d67 -
Training in progress, step 21500
6148e7c -
Training in progress, step 21000
59cd13d -
Training in progress, step 20500
54a5830 -
Training in progress, step 19500
61dbc5d -
Training in progress, step 19000
2ea7f5b -
Training in progress, step 18500
7a6e76d -
Training in progress, step 18000
e0f2dcb -
Training in progress, step 17500
326fc20 -
Training in progress, step 17000
7148b3c -
Training in progress, step 16500
2a02e12 -
Training in progress, step 16000
643e99a -
Training in progress, step 15500
007d986 -
Training in progress, step 15000
61f528e -
Training in progress, step 14500
eb37519 -
Training in progress, step 14000
0c471d1 -
Training in progress, step 13500
f12608b -
Training in progress, step 13000
c6a9f6d -
Training in progress, step 12500
ae8a38d -
Training in progress, step 12000
7ca580e -
Training in progress, step 11500
0e73dc8 -
Training in progress, step 11000
cb97f6e -
Training in progress, step 10500
16333b2 -
Training in progress, step 10000
1e3be55 -
Training in progress, step 9500
0e70660 -
Training in progress, step 9000
b360a18 -
Training in progress, step 8500
c6edaaa -
Training in progress, step 8000
07dc527 -
Training in progress, step 7500
6dade6c -
Training in progress, step 7000
f36b6f6 -
Training in progress, step 6500
b6a1dc7 -
Training in progress, step 6000
6381c2d -
Training in progress, step 5500
ed72f56 -
Training in progress, step 5000
b3efb02 -
Training in progress, step 4500
4768d94 -
Training in progress, step 4000
ff5efb8 -
Training in progress, step 3500
12256e7 -
Training in progress, step 3000
932e38e -
Training in progress, step 2500
41462cf -
Training in progress, step 2000
bc68e6a -
Training in progress, step 1500
37dc945 -
Training in progress, step 1000
0e37f1e -
Training in progress, step 500
a6fe75b