Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
sft
trl
unsloth
text-generation-inference
Instructions to use Ba2han/TR_CPT1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ba2han/TR_CPT1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ba2han/TR_CPT1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ba2han/TR_CPT1") model = AutoModelForCausalLM.from_pretrained("Ba2han/TR_CPT1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ba2han/TR_CPT1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ba2han/TR_CPT1" # 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_CPT1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ba2han/TR_CPT1
- SGLang
How to use Ba2han/TR_CPT1 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_CPT1" \ --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_CPT1", "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_CPT1" \ --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_CPT1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use Ba2han/TR_CPT1 with Docker Model Runner:
docker model run hf.co/Ba2han/TR_CPT1
Commit History
-
Model save
Verified signatured32fb40 -
Training in progress, step 10000, checkpoint
Verified signature9a1fd95 -
Training in progress, step 10000
Verified signature950a68c -
Training in progress, step 9000, checkpoint
Verified signature7ff4d27 -
Training in progress, step 9000
Verified signatured74c08f -
Training in progress, step 8000, checkpoint
Verified signaturea0d0ee1 -
Training in progress, step 8000
Verified signature870f8ac -
Training in progress, step 7000, checkpoint
Verified signature392a323 -
Training in progress, step 7000
Verified signature9ea97b0 -
Training in progress, step 6000, checkpoint
Verified signature320742f -
Training in progress, step 6000
Verified signature8e0a5f2 -
Update tokenizer_config.json
Verified signature476a170 -
Training in progress, step 5000, checkpoint
Verified signatureea13bd5 -
Training in progress, step 5000
Verified signature7e9421a -
Update tokenizer_config.json
Verified signatured156a1b -
Training in progress, step 4000, checkpoint
Verified signature36d3cda -
Training in progress, step 4000
Verified signatureb6d9cfb -
Training in progress, step 3000, checkpoint
Verified signaturee50f16b -
Training in progress, step 3000
Verified signaturec6178d7
-
Training in progress, step 2000, checkpoint
Verified signatured232a6f -
Training in progress, step 2000
Verified signature06ec410 -
Training in progress, step 1000, checkpoint
Verified signaturec3283b5 -
Training in progress, step 1000
Verified signature8588cf3 -
initial commit
Verified signaturefd2bff0