Instructions to use GhostScientist/qwen25-coder-1.5b-codealpaca-sft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use GhostScientist/qwen25-coder-1.5b-codealpaca-sft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="GhostScientist/qwen25-coder-1.5b-codealpaca-sft") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("GhostScientist/qwen25-coder-1.5b-codealpaca-sft", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use GhostScientist/qwen25-coder-1.5b-codealpaca-sft with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GhostScientist/qwen25-coder-1.5b-codealpaca-sft" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GhostScientist/qwen25-coder-1.5b-codealpaca-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/GhostScientist/qwen25-coder-1.5b-codealpaca-sft
- SGLang
How to use GhostScientist/qwen25-coder-1.5b-codealpaca-sft 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 "GhostScientist/qwen25-coder-1.5b-codealpaca-sft" \ --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": "GhostScientist/qwen25-coder-1.5b-codealpaca-sft", "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 "GhostScientist/qwen25-coder-1.5b-codealpaca-sft" \ --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": "GhostScientist/qwen25-coder-1.5b-codealpaca-sft", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use GhostScientist/qwen25-coder-1.5b-codealpaca-sft with Docker Model Runner:
docker model run hf.co/GhostScientist/qwen25-coder-1.5b-codealpaca-sft
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -2,12 +2,15 @@
|
|
| 2 |
base_model: Qwen/Qwen2.5-Coder-1.5B-Instruct
|
| 3 |
library_name: transformers
|
| 4 |
model_name: qwen25-coder-1.5b-codealpaca-sft
|
|
|
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
- hf_jobs
|
| 8 |
- sft
|
| 9 |
- trl
|
| 10 |
-
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
# Model Card for qwen25-coder-1.5b-codealpaca-sft
|
|
|
|
| 2 |
base_model: Qwen/Qwen2.5-Coder-1.5B-Instruct
|
| 3 |
library_name: transformers
|
| 4 |
model_name: qwen25-coder-1.5b-codealpaca-sft
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
tags:
|
| 7 |
- generated_from_trainer
|
| 8 |
- hf_jobs
|
| 9 |
- sft
|
| 10 |
- trl
|
| 11 |
+
- conversational
|
| 12 |
+
- text-generation
|
| 13 |
+
license: apache-2.0
|
| 14 |
---
|
| 15 |
|
| 16 |
# Model Card for qwen25-coder-1.5b-codealpaca-sft
|