Text Generation
Transformers
Safetensors
qwen2
code
qwen2.5-coder
qlora
conversational
text-generation-inference
Instructions to use jmurray10/qwen25coder-7b-p2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jmurray10/qwen25coder-7b-p2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jmurray10/qwen25coder-7b-p2") 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("jmurray10/qwen25coder-7b-p2") model = AutoModelForCausalLM.from_pretrained("jmurray10/qwen25coder-7b-p2", 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 jmurray10/qwen25coder-7b-p2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jmurray10/qwen25coder-7b-p2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jmurray10/qwen25coder-7b-p2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jmurray10/qwen25coder-7b-p2
- SGLang
How to use jmurray10/qwen25coder-7b-p2 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 "jmurray10/qwen25coder-7b-p2" \ --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": "jmurray10/qwen25coder-7b-p2", "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 "jmurray10/qwen25coder-7b-p2" \ --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": "jmurray10/qwen25coder-7b-p2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jmurray10/qwen25coder-7b-p2 with Docker Model Runner:
docker model run hf.co/jmurray10/qwen25coder-7b-p2
Commit History
-
Upload tokenizer_config.json with huggingface_hub
Verified signatureb1215a0 -
Upload generation_config.json with huggingface_hub
Verified signature47c8b0a -
Upload config.json with huggingface_hub
Verified signature4c2d1bd -
Serving compat: transformers-4.x config keys, inline chat template, ChatML eos
Verified signatureThe repo was saved by transformers 5.13.1, whose schema TGI / vLLM / the HF inference toolkit do not read: * config.json used `dtype` + nested `rope_parameters`; 4.x stacks look for `torch_dtype` + top-level `rope_theta` and silently fell back to the default rope_theta=10000.0 (should be 1e6) and fp32 loading. Both key sets are now present, so 4.x and 5.x both load correctly. * the chat template lived only in chat_template.jinja -> served with no template at all. Now also inlined in tokenizer_config.json. * `extra_special_tokens` (5.x list) replaced with `added_tokens_decoder` + `additional_special_tokens`, plus a special_tokens_map.json. * generation_config eos_token_id -> [151645, 151643] so a server halts on <|im_end|> as well as <|endoftext|>.443a4d3
-
Upload README.md with huggingface_hub
Verified signature2cc8415 -
Upload folder using huggingface_hub
Verified signature648ca6b -
initial commit
Verified signaturea69f14a