Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
sft
unsloth
trl
conversational
text-generation-inference
Instructions to use Ba2han/TR_SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ba2han/TR_SFT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ba2han/TR_SFT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ba2han/TR_SFT") model = AutoModelForCausalLM.from_pretrained("Ba2han/TR_SFT", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ba2han/TR_SFT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ba2han/TR_SFT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ba2han/TR_SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ba2han/TR_SFT
- SGLang
How to use Ba2han/TR_SFT 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_SFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ba2han/TR_SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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_SFT" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ba2han/TR_SFT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use Ba2han/TR_SFT with Docker Model Runner:
docker model run hf.co/Ba2han/TR_SFT
Commit History
-
Create chat_template.jinja
Verified signature1401abb -
Model save
Verified signature0bba101 -
Training in progress, step 4740, checkpoint
Verified signature23efa09 -
Training in progress, step 4740
Verified signature242bf5a -
Training in progress, step 4266, checkpoint
Verified signature9bc6da3 -
Training in progress, step 4266
Verified signatureebf9579 -
Training in progress, step 3792, checkpoint
Verified signature23bd375 -
Training in progress, step 3792
Verified signature08647fc -
Training in progress, step 3318, checkpoint
Verified signature8eecfff -
Training in progress, step 3318
Verified signatureda72fd6 -
Training in progress, step 2844, checkpoint
Verified signature529cf6b -
Training in progress, step 2844
Verified signature3843c79 -
Training in progress, step 2370, checkpoint
Verified signaturea7a6d4d -
Training in progress, step 2370
Verified signature8585165
-
Training in progress, step 1896, checkpoint
Verified signatureb5ad487 -
Training in progress, step 1896
Verified signaturee6f6501 -
Training in progress, step 1422, checkpoint
Verified signatured36587f -
Training in progress, step 1422
Verified signaturef244272 -
Training in progress, step 948, checkpoint
Verified signature5bd0b9e -
Training in progress, step 948
Verified signature26da1b5 -
Training in progress, step 474, checkpoint
Verified signatureb66112b -
Training in progress, step 474
Verified signature51af747
-
Model save
Verified signature074f45c -
Training in progress, step 12500, checkpoint
Verified signatureb378d19 -
Training in progress, step 12500
Verified signature0203776 -
Training in progress, step 11250, checkpoint
Verified signaturee2fd089 -
Training in progress, step 11250
Verified signature55cb409 -
Training in progress, step 10000, checkpoint
Verified signature5cad454 -
Training in progress, step 10000
Verified signaturea14c339 -
Training in progress, step 8750, checkpoint
Verified signaturea3b5f1e -
Training in progress, step 8750
Verified signature11f2c77 -
Training in progress, step 7500, checkpoint
Verified signature190bfc5 -
Training in progress, step 7500
Verified signaturef8e1205 -
Training in progress, step 6250, checkpoint
Verified signature85f14ce -
Training in progress, step 6250
Verified signaturefb5b1b0 -
Training in progress, step 5000, checkpoint
Verified signature08ed221 -
Training in progress, step 5000
Verified signature46dfa20 -
Training in progress, step 3750, checkpoint
Verified signaturef7f2e28 -
Training in progress, step 3750
Verified signature5aff6f8 -
Training in progress, step 2500, checkpoint
Verified signatured398121 -
Training in progress, step 2500
Verified signature2193805 -
Training in progress, step 1250, checkpoint
Verified signature69b7962 -
Training in progress, step 1250
Verified signature19b19a0
-
initial commit
Verified signature9d40a56