Text Generation
Transformers
TensorBoard
Safetensors
qwen2
Generated from Trainer
trl
sft
conversational
text-generation-inference
Instructions to use anujjamwal/Qwen2.5-Math-1.5B-hcot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anujjamwal/Qwen2.5-Math-1.5B-hcot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="anujjamwal/Qwen2.5-Math-1.5B-hcot") 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("anujjamwal/Qwen2.5-Math-1.5B-hcot") model = AutoModelForCausalLM.from_pretrained("anujjamwal/Qwen2.5-Math-1.5B-hcot", 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 anujjamwal/Qwen2.5-Math-1.5B-hcot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anujjamwal/Qwen2.5-Math-1.5B-hcot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anujjamwal/Qwen2.5-Math-1.5B-hcot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/anujjamwal/Qwen2.5-Math-1.5B-hcot
- SGLang
How to use anujjamwal/Qwen2.5-Math-1.5B-hcot 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 "anujjamwal/Qwen2.5-Math-1.5B-hcot" \ --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": "anujjamwal/Qwen2.5-Math-1.5B-hcot", "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 "anujjamwal/Qwen2.5-Math-1.5B-hcot" \ --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": "anujjamwal/Qwen2.5-Math-1.5B-hcot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use anujjamwal/Qwen2.5-Math-1.5B-hcot with Docker Model Runner:
docker model run hf.co/anujjamwal/Qwen2.5-Math-1.5B-hcot
Commit History
-
Training in progress, epoch 30
Verified signature5d5f951 -
Training in progress, epoch 29
Verified signature911b799 -
Training in progress, epoch 28
Verified signature36153e8 -
Training in progress, epoch 27
Verified signature616932a -
Training in progress, epoch 26
Verified signature7871726 -
Training in progress, epoch 25
Verified signature894dd6d -
Training in progress, epoch 24
Verified signature6a377e4 -
Training in progress, epoch 23
Verified signaturedd5a59a -
Training in progress, epoch 22
Verified signature8c0ea20 -
Training in progress, epoch 21
Verified signature6840fbc -
Training in progress, epoch 20
Verified signature9b40fc4 -
Training in progress, epoch 18
Verified signature40dc5cd -
Training in progress, epoch 17
Verified signature1890550 -
Training in progress, epoch 16
Verified signature8b493a8 -
Training in progress, epoch 15
Verified signature398fa9f -
Training in progress, epoch 14
Verified signature3d6cb62 -
Training in progress, epoch 13
Verified signaturefd1f524 -
Training in progress, epoch 12
Verified signaturef26cd00 -
Training in progress, epoch 11
Verified signaturec210fa4 -
Training in progress, epoch 10
Verified signature6268f77 -
Training in progress, epoch 9
Verified signature04bd074 -
Training in progress, epoch 8
Verified signature32c3ac8 -
Training in progress, epoch 7
Verified signaturecdb8c71 -
Training in progress, epoch 6
Verified signatureeea1971 -
Training in progress, epoch 5
Verified signaturea7e99f3 -
Training in progress, epoch 4
Verified signature8628aba -
Training in progress, epoch 3
Verified signaturef331f46 -
Training in progress, epoch 2
Verified signature0289323 -
Training in progress, epoch 1
Verified signaturefcf45b6 -
initial commit
Verified signaturedf595c4