Instructions to use Taimwe/qwen2.5-coder-7b-pro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Taimwe/qwen2.5-coder-7b-pro with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit") model = PeftModel.from_pretrained(base_model, "Taimwe/qwen2.5-coder-7b-pro") - Transformers
How to use Taimwe/qwen2.5-coder-7b-pro with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Taimwe/qwen2.5-coder-7b-pro") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Taimwe/qwen2.5-coder-7b-pro", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Taimwe/qwen2.5-coder-7b-pro with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Taimwe/qwen2.5-coder-7b-pro" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Taimwe/qwen2.5-coder-7b-pro", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Taimwe/qwen2.5-coder-7b-pro
- SGLang
How to use Taimwe/qwen2.5-coder-7b-pro 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 "Taimwe/qwen2.5-coder-7b-pro" \ --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": "Taimwe/qwen2.5-coder-7b-pro", "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 "Taimwe/qwen2.5-coder-7b-pro" \ --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": "Taimwe/qwen2.5-coder-7b-pro", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use Taimwe/qwen2.5-coder-7b-pro with Docker Model Runner:
docker model run hf.co/Taimwe/qwen2.5-coder-7b-pro
Non-commercial access request
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
This adapter is licensed under the Taimwe Non-Commercial License 1.0 (https://huggingface.co/Taimwe/qwen2.5-coder-7b-pro/blob/main/LICENSE). By requesting access you confirm that you will use it only for non-commercial purposes - personal projects, academic research, teaching or evaluation - and that your username and email address are shared with the model author. Commercial use requires a separate licence; see the LICENSE file.
Log in or Sign Up to review the conditions and access this model content.