Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
trl
sft
unsloth
text-generation-inference
Instructions to use Ba2han/TR_CPTs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ba2han/TR_CPTs with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ba2han/TR_CPTs")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ba2han/TR_CPTs") model = AutoModelForCausalLM.from_pretrained("Ba2han/TR_CPTs", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ba2han/TR_CPTs with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ba2han/TR_CPTs" # 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_CPTs", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ba2han/TR_CPTs
- SGLang
How to use Ba2han/TR_CPTs 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_CPTs" \ --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_CPTs", "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_CPTs" \ --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_CPTs", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use Ba2han/TR_CPTs with Docker Model Runner:
docker model run hf.co/Ba2han/TR_CPTs
Commit History
-
Model save
Verified signaturec123733 -
Training in progress, step 9449, checkpoint
Verified signaturebf86ed8 -
Training in progress, step 9449
Verified signature576f086 -
Training in progress, step 8505, checkpoint
Verified signature31ebbf7 -
Training in progress, step 8505
Verified signatureed35d76 -
Training in progress, step 7560, checkpoint
Verified signature902e1ab -
Training in progress, step 7560
Verified signaturecb677c8
-
Training in progress, step 6615, checkpoint
Verified signatureb483270 -
Training in progress, step 6615
Verified signature4dd6764 -
Training in progress, step 5670, checkpoint
Verified signature217103e -
Training in progress, step 5670
Verified signature02a9456 -
Training in progress, step 4725, checkpoint
Verified signature0faa16e -
Training in progress, step 4725
Verified signature4d883f2 -
Training in progress, step 3780, checkpoint
Verified signaturea0361e7 -
Training in progress, step 3780
Verified signature907afa7 -
Training in progress, step 2835, checkpoint
Verified signature8b200b2 -
Training in progress, step 2835
Verified signaturebd48822 -
Training in progress, step 1890, checkpoint
Verified signature0873a11 -
Training in progress, step 1890
Verified signature8d55c0d
-
Training in progress, step 945, checkpoint
Verified signature9037166 -
Training in progress, step 945
Verified signature2d7d802 -
initial commit
Verified signature820ae8d