Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
sft
unsloth
trl
text-generation-inference
Instructions to use Ba2han/TR_SFT2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ba2han/TR_SFT2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ba2han/TR_SFT2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ba2han/TR_SFT2") model = AutoModelForCausalLM.from_pretrained("Ba2han/TR_SFT2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ba2han/TR_SFT2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ba2han/TR_SFT2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ba2han/TR_SFT2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ba2han/TR_SFT2
- SGLang
How to use Ba2han/TR_SFT2 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 "Ba2han/TR_SFT2" \ --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": "Ba2han/TR_SFT2", "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 "Ba2han/TR_SFT2" \ --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": "Ba2han/TR_SFT2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use Ba2han/TR_SFT2 with Docker Model Runner:
docker model run hf.co/Ba2han/TR_SFT2
Commit History
-
Update tokenizer_config.json
Verified signaturea28c9d4 -
Update tokenizer_config.json
Verified signaturee2a2b46 -
Update generation_config.json
Verified signaturebb1ba21 -
Model save
Verified signature8c77bcd -
Training in progress, step 4793, checkpoint
Verified signaturee4c952b -
Training in progress, step 4793
Verified signature8873cb8 -
Training in progress, step 4320, checkpoint
Verified signature248d521 -
Training in progress, step 4320
Verified signature0f85e8e -
Training in progress, step 3840, checkpoint
Verified signaturef3eb638 -
Training in progress, step 3840
Verified signature2708ca5 -
Training in progress, step 3360, checkpoint
Verified signature1730e72 -
Training in progress, step 3360
Verified signature8b6f12a -
Training in progress, step 2880, checkpoint
Verified signature43d5336 -
Training in progress, step 2880
Verified signature88e573b -
Training in progress, step 2400, checkpoint
Verified signaturea9dd480 -
Training in progress, step 2400
Verified signaturec1c75ff -
Training in progress, step 1920, checkpoint
Verified signature4cde30a -
Training in progress, step 1920
Verified signature55d132f -
Training in progress, step 1440, checkpoint
Verified signature88fd153 -
Training in progress, step 1440
Verified signaturee362aca -
Training in progress, step 960, checkpoint
Verified signature079fa52 -
Training in progress, step 960
Verified signature40765f7 -
Training in progress, step 480, checkpoint
Verified signatureca95824 -
Training in progress, step 480
Verified signature80e892d -
initial commit
Verified signatureb0cfae1