Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
unsloth
trl
sft
conversational
text-generation-inference
Instructions to use Ba2han/test-model-0609-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ba2han/test-model-0609-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ba2han/test-model-0609-2") 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/test-model-0609-2") model = AutoModelForCausalLM.from_pretrained("Ba2han/test-model-0609-2", 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/test-model-0609-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ba2han/test-model-0609-2" # 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/test-model-0609-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ba2han/test-model-0609-2
- SGLang
How to use Ba2han/test-model-0609-2 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/test-model-0609-2" \ --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/test-model-0609-2", "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/test-model-0609-2" \ --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/test-model-0609-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use Ba2han/test-model-0609-2 with Docker Model Runner:
docker model run hf.co/Ba2han/test-model-0609-2
Commit History
-
Training in progress, step 29440, checkpoint
Verified signature6c42cfd -
Training in progress, step 29440
Verified signature19747f3
-
Training in progress, step 27968, checkpoint
Verified signaturec3929c6 -
Training in progress, step 27968
Verified signatureec42ad9 -
Training in progress, step 26496, checkpoint
Verified signaturee8e4fc0 -
Training in progress, step 26496
Verified signature341fce4
-
Training in progress, step 25024, checkpoint
Verified signature07866aa -
Training in progress, step 25024
Verified signatureeacd413 -
Training in progress, step 23552, checkpoint
Verified signaturedbe21e7 -
Training in progress, step 23552
Verified signature7c0034b
-
Training in progress, step 22694, checkpoint
Verified signaturee4ecb00 -
Training in progress, step 22694
Verified signatured17633c -
Training in progress, step 22080, checkpoint
Verified signature1bc4937 -
Training in progress, step 22080
Verified signature19c07a3 -
Training in progress, step 20608, checkpoint
Verified signature68b1f78
-
Training in progress, step 20608
Verified signature175be74 -
Training in progress, step 19635, checkpoint
Verified signatureff159fe -
Training in progress, step 19635
Verified signature30be292 -
Model save
Verified signature8ba0986 -
Training in progress, step 19136, checkpoint
Verified signature9e67029 -
Training in progress, step 19136
Verified signature3f37090
-
Training in progress, step 17664, checkpoint
Verified signaturecad3a5b -
Training in progress, step 17664
Verified signaturefc5a826 -
Model save
Verified signature80a4c05 -
Training in progress, step 16192, checkpoint
Verified signaturef63a307 -
Training in progress, step 16192
Verified signature9477d57
-
Training in progress, step 14720, checkpoint
Verified signature5558aed -
Training in progress, step 14720
Verified signaturedd93cb4
-
Training in progress, step 13248, checkpoint
Verified signature0f660e1 -
Training in progress, step 13248
Verified signature7f56814
-
Training in progress, step 11776, checkpoint
Verified signaturec822afb -
Training in progress, step 11776
Verified signature7df0a1c -
Training in progress, step 10304, checkpoint
Verified signaturec20da0d -
Training in progress, step 10304
Verified signature7e10e47 -
Training in progress, step 8832, checkpoint
Verified signature12df396
-
Training in progress, step 7360, checkpoint
Verified signature1285a0d -
Training in progress, step 7360
Verified signature568c99e -
Training in progress, step 5888, checkpoint
Verified signatured65440f -
Training in progress, step 5888
Verified signaturee0889cf -
Training in progress, step 4416, checkpoint
Verified signaturece31a4d -
Training in progress, step 4416
Verified signatureb9ad61e -
Training in progress, step 2944, checkpoint
Verified signaturea77ebe0 -
Training in progress, step 2944
Verified signature9074709
-
Training in progress, step 1472, checkpoint
Verified signature4536638 -
Training in progress, step 1472
Verified signaturef82b579
-
initial commit
Verified signature9614755