Instructions to use CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia") - Transformers
How to use CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia
- SGLang
How to use CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia 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 "CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia" \ --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": "CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia", "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 "CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia" \ --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": "CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia with Docker Model Runner:
docker model run hf.co/CorgiPudding/Qwen2.5-Coder-1.5B-Instruct-Julia
| {"current_steps": 600, "total_steps": 9064, "loss": 0.4358, "lr": 6.604189636163176e-05, "epoch": 0.13241379310344828, "percentage": 6.62, "elapsed_time": "0:12:42", "remaining_time": "2:59:21"} | |
| {"current_steps": 1200, "total_steps": 9064, "loss": 0.0466, "lr": 9.968414572743643e-05, "epoch": 0.26482758620689656, "percentage": 13.24, "elapsed_time": "0:25:27", "remaining_time": "2:46:49"} | |
| {"current_steps": 1800, "total_steps": 9064, "loss": 0.0417, "lr": 9.70783181950037e-05, "epoch": 0.3972413793103448, "percentage": 19.86, "elapsed_time": "0:38:11", "remaining_time": "2:34:07"} | |
| {"current_steps": 2400, "total_steps": 9064, "loss": 0.0389, "lr": 9.19696754273079e-05, "epoch": 0.5296551724137931, "percentage": 26.48, "elapsed_time": "0:50:47", "remaining_time": "2:21:03"} | |
| {"current_steps": 3000, "total_steps": 9064, "loss": 0.0393, "lr": 8.462980718032852e-05, "epoch": 0.6620689655172414, "percentage": 33.1, "elapsed_time": "1:03:26", "remaining_time": "2:08:13"} | |
| {"current_steps": 3000, "total_steps": 9064, "eval_loss": 0.03762035071849823, "epoch": 0.6620689655172414, "percentage": 33.1, "elapsed_time": "1:04:59", "remaining_time": "2:11:21"} | |
| {"current_steps": 3600, "total_steps": 9064, "loss": 0.0375, "lr": 7.544892140493736e-05, "epoch": 0.7944827586206896, "percentage": 39.72, "elapsed_time": "1:17:46", "remaining_time": "1:58:02"} | |
| {"current_steps": 4200, "total_steps": 9064, "loss": 0.0373, "lr": 6.49150996994762e-05, "epoch": 0.926896551724138, "percentage": 46.34, "elapsed_time": "1:30:30", "remaining_time": "1:44:48"} | |
| {"current_steps": 4800, "total_steps": 9064, "loss": 0.0332, "lr": 5.358834952514551e-05, "epoch": 1.059144827586207, "percentage": 52.96, "elapsed_time": "1:43:26", "remaining_time": "1:31:53"} | |
| {"current_steps": 5400, "total_steps": 9064, "loss": 0.0303, "lr": 4.2070832641099686e-05, "epoch": 1.1915586206896551, "percentage": 59.58, "elapsed_time": "1:56:06", "remaining_time": "1:18:47"} | |
| {"current_steps": 6000, "total_steps": 9064, "loss": 0.031, "lr": 3.097485249901231e-05, "epoch": 1.3239724137931035, "percentage": 66.2, "elapsed_time": "2:08:41", "remaining_time": "1:05:43"} | |
| {"current_steps": 6000, "total_steps": 9064, "eval_loss": 0.035575784742832184, "epoch": 1.3239724137931035, "percentage": 66.2, "elapsed_time": "2:10:15", "remaining_time": "1:06:30"} | |
| {"current_steps": 6600, "total_steps": 9064, "loss": 0.0301, "lr": 2.089030247686608e-05, "epoch": 1.4563862068965516, "percentage": 72.82, "elapsed_time": "2:23:00", "remaining_time": "0:53:23"} | |
| {"current_steps": 7200, "total_steps": 9064, "loss": 0.0297, "lr": 1.2353305495017958e-05, "epoch": 1.5888, "percentage": 79.44, "elapsed_time": "2:35:55", "remaining_time": "0:40:22"} | |
| {"current_steps": 7800, "total_steps": 9064, "loss": 0.029, "lr": 5.817712220372823e-06, "epoch": 1.7212137931034484, "percentage": 86.05, "elapsed_time": "2:48:38", "remaining_time": "0:27:19"} | |
| {"current_steps": 8400, "total_steps": 9064, "loss": 0.0296, "lr": 1.6309730939492506e-06, "epoch": 1.8536275862068967, "percentage": 92.67, "elapsed_time": "3:01:19", "remaining_time": "0:14:19"} | |
| {"current_steps": 9000, "total_steps": 9064, "loss": 0.0297, "lr": 1.56668924206127e-08, "epoch": 1.9860413793103449, "percentage": 99.29, "elapsed_time": "3:14:04", "remaining_time": "0:01:22"} | |
| {"current_steps": 9000, "total_steps": 9064, "eval_loss": 0.03463894873857498, "epoch": 1.9860413793103449, "percentage": 99.29, "elapsed_time": "3:15:37", "remaining_time": "0:01:23"} | |
| {"current_steps": 9064, "total_steps": 9064, "epoch": 2.0, "percentage": 100.0, "elapsed_time": "3:16:58", "remaining_time": "0:00:00"} | |