How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1
# Run inference directly in the terminal:
llama cli -hf unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1
# Run inference directly in the terminal:
llama cli -hf unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1
# Run inference directly in the terminal:
./llama-cli -hf unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1
# Run inference directly in the terminal:
./build/bin/llama-cli -hf unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1
Use Docker
docker model run hf.co/unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1
Quick Links

Model Trained Using AutoTrain

This model was trained using AutoTrain. For more information, please visit AutoTrain.

Usage


from transformers import AutoModelForCausalLM, AutoTokenizer

model_path = "PATH_TO_THIS_REPO"

tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(
    model_path,
    device_map="auto",
    torch_dtype='auto'
).eval()

# Prompt content: "hi"
messages = [
    {"role": "user", "content": "hi"}
]

input_ids = tokenizer.apply_chat_template(conversation=messages, tokenize=True, add_generation_prompt=True, return_tensors='pt')
output_ids = model.generate(input_ids.to('cuda'))
response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)

# Model response: "Hello! How can I assist you today?"
print(response)
Downloads last month
121
Safetensors
Model size
2B params
Tensor type
F16
·
Inference Providers NEW
Input a message to start chatting with unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1.

Model tree for unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1

Dataset used to train unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1

Collection including unclemusclez/Unsloth-Qwen2.5-Coder-1.5B-Devinator-v1