Text Generation
Transformers
Safetensors
qwen2
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use jlzhou/Qwen2.5-3B-Infinity-Instruct-0625 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jlzhou/Qwen2.5-3B-Infinity-Instruct-0625 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jlzhou/Qwen2.5-3B-Infinity-Instruct-0625") 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("jlzhou/Qwen2.5-3B-Infinity-Instruct-0625") model = AutoModelForCausalLM.from_pretrained("jlzhou/Qwen2.5-3B-Infinity-Instruct-0625", 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 jlzhou/Qwen2.5-3B-Infinity-Instruct-0625 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jlzhou/Qwen2.5-3B-Infinity-Instruct-0625" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jlzhou/Qwen2.5-3B-Infinity-Instruct-0625", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jlzhou/Qwen2.5-3B-Infinity-Instruct-0625
- SGLang
How to use jlzhou/Qwen2.5-3B-Infinity-Instruct-0625 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 "jlzhou/Qwen2.5-3B-Infinity-Instruct-0625" \ --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": "jlzhou/Qwen2.5-3B-Infinity-Instruct-0625", "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 "jlzhou/Qwen2.5-3B-Infinity-Instruct-0625" \ --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": "jlzhou/Qwen2.5-3B-Infinity-Instruct-0625", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jlzhou/Qwen2.5-3B-Infinity-Instruct-0625 with Docker Model Runner:
docker model run hf.co/jlzhou/Qwen2.5-3B-Infinity-Instruct-0625
Commit History
-
Update README.md
Verified signaturee45d457 -
Adding Evaluation Results (#1)
Verified signature- Adding Evaluation Results (17c20f000b6bbacf34f2cd774d57d5cae45dcbe2)901bee6
-
Delete model-00003-of-00003.safetensors
Verified signature62f8732 -
Delete model-00002-of-00003.safetensors
Verified signaturedd30709 -
Delete model-00001-of-00003.safetensors
Verified signature9e59b47 -
Upload Qwen2ForCausalLM
Verified signature6d580f3 -
Update README.md
Verified signatureAdd model details94c1746 -
Update README.md
Verified signatureAdd quickstart codea1bf35e -
Update README.md
Verified signatureAdd pipeline tag80e1091 -
Update README.md
Verified signatureAdd license metadatab8862ab -
Update README.md
Verified signature46f58ad -
Update README.md
Verified signature595f6ec -
Delete model.safetensors
Verified signature437767f -
Upload tokenizer
Verified signature7e967d8 -
Upload Qwen2ForCausalLM
Verified signature12ce037 -
Create README.md
Verified signature6bf848f
-
Training in progress, step 10
Verified signaturea9473b0 -
initial commit
Verified signature71cd968