Instructions to use Jabr7/charruadevs-4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Jabr7/charruadevs-4b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen3-4B-Instruct-2507-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "Jabr7/charruadevs-4b") - llama-cpp-python
How to use Jabr7/charruadevs-4b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Jabr7/charruadevs-4b", filename="charruadevs-4b-chat.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Jabr7/charruadevs-4b with 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 Jabr7/charruadevs-4b:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jabr7/charruadevs-4b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Jabr7/charruadevs-4b:Q4_K_M # Run inference directly in the terminal: llama cli -hf Jabr7/charruadevs-4b: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 Jabr7/charruadevs-4b:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Jabr7/charruadevs-4b: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 Jabr7/charruadevs-4b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Jabr7/charruadevs-4b:Q4_K_M
Use Docker
docker model run hf.co/Jabr7/charruadevs-4b:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Jabr7/charruadevs-4b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Jabr7/charruadevs-4b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Jabr7/charruadevs-4b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Jabr7/charruadevs-4b:Q4_K_M
- Ollama
How to use Jabr7/charruadevs-4b with Ollama:
ollama run hf.co/Jabr7/charruadevs-4b:Q4_K_M
- Unsloth Studio
How to use Jabr7/charruadevs-4b 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 Jabr7/charruadevs-4b 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 Jabr7/charruadevs-4b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Jabr7/charruadevs-4b to start chatting
- Pi
How to use Jabr7/charruadevs-4b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jabr7/charruadevs-4b: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": "Jabr7/charruadevs-4b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Jabr7/charruadevs-4b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jabr7/charruadevs-4b: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 Jabr7/charruadevs-4b:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use Jabr7/charruadevs-4b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Jabr7/charruadevs-4b:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "Jabr7/charruadevs-4b:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use Jabr7/charruadevs-4b with Docker Model Runner:
docker model run hf.co/Jabr7/charruadevs-4b:Q4_K_M
- Lemonade
How to use Jabr7/charruadevs-4b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Jabr7/charruadevs-4b:Q4_K_M
Run and chat with the model
lemonade run user.charruadevs-4b-Q4_K_M
List all available models
lemonade list
CharruaDevs Qwen3-4B (LoRA + GGUF)
Conversational fine-tune of Qwen3-4B-Instruct-2507 that replies in the style of the Uruguayan subreddit r/CharruaDevs: informal Rioplatense Spanish, voseo, and short, opinionated developer-forum answers.
The goal is not to teach the model new knowledge but to transfer the style and opinions of the community. For that reason the LoRA targets only the attention projections (q_proj, k_proj, v_proj, o_proj) and leaves the MLP blocks untouched, so training changes how the model speaks rather than what it knows. Trained with QLoRA (4-bit, r=32, alpha=64) on roughly 11k real post/comment pairs from the subreddit.
Two variants
This repo ships two GGUF variants of the same project, trained on different data mixes. They trade style intensity for conversational ability:
chat (recommended) |
raw |
|
|---|---|---|
| Training data | single-turn pairs + 1.3k real multi-turn comment chains | single-turn post/comment pairs only |
| Multi-turn chat | works | collapses after the first reply |
| Style intensity (single-shot) | strong | strongest |
| Best for | chatting in Ollama / LM Studio | one-shot forum-style answers |
In a pairwise LLM-judge eval both variants beat the base model on subreddit-style fidelity (chat: 7-1, raw: 6-2), while the raw variant wins head-to-head on single-shot style but returns empty or off-distribution replies from the second turn onwards.
Quick start (Ollama)
Chat variant (recommended):
ollama run hf.co/Jabr7/charruadevs-4b:charruadevs-4b-chat.Q4_K_M.gguf
Raw variant (single-shot only, phrase your message like a forum post and reset the session between questions):
ollama run hf.co/Jabr7/charruadevs-4b:charruadevs-4b-raw.Q4_K_M.gguf
Suggested sampling for both: temperature=0.7, top_p=0.9, repeat_penalty=1.1. The models were trained without a system prompt, so leave the system field empty for best results.
Using the adapter (Python)
The adapter_model.safetensors in this repo is the chat variant.
from unsloth import FastLanguageModel
model, tok = FastLanguageModel.from_pretrained("Jabr7/charruadevs-4b", load_in_4bit=True)
FastLanguageModel.for_inference(model)
msgs = [{"role": "user", "content": "¿Qué opinan de Genexus?"}]
ids = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to("cuda")
out = model.generate(ids, max_new_tokens=200, temperature=0.7, top_p=0.9)
print(tok.decode(out[0][ids.shape[1]:], skip_special_tokens=True))
Training details
- Base model:
unsloth/Qwen3-4B-Instruct-2507 - Method: 4-bit QLoRA, target modules
q_proj,k_proj,v_proj,o_proj, r=32, alpha=64 - Loss: computed on the assistant completion only (train on responses)
- chat variant: ~1500 steps on single-turn pairs plus multi-turn chains reconstructed from real Reddit comment trees, with dialect-heavy and high-karma examples oversampled
- raw variant: ~1300 steps on single-turn pairs with dialect-heavy examples oversampled
- Data: real comments from r/CharruaDevs (custom dataset, not included)
Limitations
This is a style and opinion model, not a factual source. It can confidently make up salaries, dates, statistics, and other numbers, so do not trust them. It also reproduces the humor, writing quirks, and biases of the forum. Intended for demonstration and entertainment.
- Downloads last month
- 1
4-bit
Model tree for Jabr7/charruadevs-4b
Base model
Qwen/Qwen3-4B-Instruct-2507