Instructions to use NickIBrody/qwen-linux-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use NickIBrody/qwen-linux-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="NickIBrody/qwen-linux-gguf", filename="Qwen2.5-3B-Instruct.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use NickIBrody/qwen-linux-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf NickIBrody/qwen-linux-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf NickIBrody/qwen-linux-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf NickIBrody/qwen-linux-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf NickIBrody/qwen-linux-gguf:Q4_K_M
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 NickIBrody/qwen-linux-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf NickIBrody/qwen-linux-gguf:Q4_K_M
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 NickIBrody/qwen-linux-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf NickIBrody/qwen-linux-gguf:Q4_K_M
Use Docker
docker model run hf.co/NickIBrody/qwen-linux-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use NickIBrody/qwen-linux-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NickIBrody/qwen-linux-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NickIBrody/qwen-linux-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/NickIBrody/qwen-linux-gguf:Q4_K_M
- Ollama
How to use NickIBrody/qwen-linux-gguf with Ollama:
ollama run hf.co/NickIBrody/qwen-linux-gguf:Q4_K_M
- Unsloth Studio new
How to use NickIBrody/qwen-linux-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for NickIBrody/qwen-linux-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for NickIBrody/qwen-linux-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for NickIBrody/qwen-linux-gguf to start chatting
- Pi new
How to use NickIBrody/qwen-linux-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf NickIBrody/qwen-linux-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "NickIBrody/qwen-linux-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use NickIBrody/qwen-linux-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf NickIBrody/qwen-linux-gguf:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default NickIBrody/qwen-linux-gguf:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use NickIBrody/qwen-linux-gguf with Docker Model Runner:
docker model run hf.co/NickIBrody/qwen-linux-gguf:Q4_K_M
- Lemonade
How to use NickIBrody/qwen-linux-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull NickIBrody/qwen-linux-gguf:Q4_K_M
Run and chat with the model
lemonade run user.qwen-linux-gguf-Q4_K_M
List all available models
lemonade list
Qwen2.5-3B Linux Assistant
A fine-tuned version of Qwen2.5-3B-Instruct trained to act as a Linux/Shell command assistant. Given a natural language description, the model outputs the correct shell command.
Supports both Russian and English input.
Model Details
| Property | Value |
|---|---|
| Base model | Qwen2.5-3B-Instruct |
| Fine-tuning method | QLoRA (LoRA r=16, alpha=16) |
| Training steps | ~1700 |
| Epochs | 3 |
| Final loss | ~0.28 |
| Dataset size | ~4500 examples |
| Languages | Russian, English |
| Framework | Unsloth + TRL |
Usage
Ollama (recommended)
ollama run hf.co/NickIBrody/qwen-linux-gguf
llama.cpp
llama-cli -hf NickIBrody/qwen-linux-gguf --jinja
Python (transformers)
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model_id = "NickIBrody/qwen-linux"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
messages = [
{"role": "system", "content": "You are a Linux assistant. Reply only with the shell command, no explanations."},
{"role": "user", "content": "show top 5 processes by memory usage"},
]
inp = tok.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(model.device)
out = model.generate(inp, max_new_tokens=128, temperature=0.3)
print(tok.decode(out[0][inp.shape[1]:], skip_special_tokens=True))
Examples
| Input | Output |
|---|---|
| ะฟะพะบะฐะทะฐะถะธ ัะพะฟ 5 ะฟัะพัะตััะพะฒ ะฟะพ ะฟะฐะผััะธ | ps aux --sort=-%mem | head -n 5 |
| ะณะดะต ั ะฝะฐั ะพะถััั ะฒ ัะตัะผะธะฝะฐะปะต | pwd |
| compress file data.txt with bzip2 | bzip2 data.txt |
| show disk usage in human readable format | df -h |
| find all .log files modified in last 7 days | find / -name "*.log" -mtime -7 |
| kill process by name nginx | pkill nginx |
| show open ports | ss -tulnp |
Dataset
Training data: NickIBrody/linux-commands-ru-en
~4500 shell command examples in Russian and English, covering:
- File system navigation and management
- Process management
- Networking
- Archive and compression
- System monitoring
- Package management
Training Code
from unsloth import FastLanguageModel
from unsloth.chat_templates import get_chat_template
from datasets import load_dataset
from trl import SFTTrainer
from transformers import TrainingArguments
model, tok = FastLanguageModel.from_pretrained(
"unsloth/Qwen2.5-3B-Instruct-bnb-4bit",
max_seq_length=2048,
load_in_4bit=True
)
model = FastLanguageModel.get_peft_model(
model, r=16, lora_alpha=16,
target_modules=["q_proj","k_proj","v_proj","o_proj","gate_proj","up_proj","down_proj"]
)
tok = get_chat_template(tok, chat_template="qwen-2.5")
ds = load_dataset("NickIBrody/linux-commands-ru-en", split="train")
ds = ds.map(lambda x: {"text": tok.apply_chat_template(x["messages"], tokenize=False)})
SFTTrainer(
model=model,
tokenizer=tok,
train_dataset=ds,
dataset_text_field="text",
max_seq_length=2048,
args=TrainingArguments(
per_device_train_batch_size=2,
gradient_accumulation_steps=4,
num_train_epochs=3,
learning_rate=2e-4,
fp16=True,
logging_steps=10,
output_dir="out",
optim="adamw_8bit"
)
).train()
model.save_pretrained_gguf("qwen-linux", tok, quantization_method="q4_k_m")
Limitations
- Designed for shell commands only, not general conversation
- May struggle with highly complex multi-step scripts
- Best results with clear, specific prompts
License
Apache 2.0
- Downloads last month
- 125
4-bit