Instructions to use valentin-marquez/snaicc-asistente-granite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use valentin-marquez/snaicc-asistente-granite 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 valentin-marquez/snaicc-asistente-granite:Q4_K_M # Run inference directly in the terminal: llama cli -hf valentin-marquez/snaicc-asistente-granite:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf valentin-marquez/snaicc-asistente-granite:Q4_K_M # Run inference directly in the terminal: llama cli -hf valentin-marquez/snaicc-asistente-granite:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf valentin-marquez/snaicc-asistente-granite:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf valentin-marquez/snaicc-asistente-granite:Q4_K_M
Use Docker
docker model run hf.co/valentin-marquez/snaicc-asistente-granite:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use valentin-marquez/snaicc-asistente-granite with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "valentin-marquez/snaicc-asistente-granite" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "valentin-marquez/snaicc-asistente-granite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/valentin-marquez/snaicc-asistente-granite:Q4_K_M
- Ollama
How to use valentin-marquez/snaicc-asistente-granite with Ollama:
ollama run hf.co/valentin-marquez/snaicc-asistente-granite:Q4_K_M
- Unsloth Desktop
- Pi
How to use valentin-marquez/snaicc-asistente-granite with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf valentin-marquez/snaicc-asistente-granite:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "valentin-marquez/snaicc-asistente-granite:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use valentin-marquez/snaicc-asistente-granite with Docker Model Runner:
docker model run hf.co/valentin-marquez/snaicc-asistente-granite:Q4_K_M
- Lemonade
How to use valentin-marquez/snaicc-asistente-granite with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull valentin-marquez/snaicc-asistente-granite:Q4_K_M
Run and chat with the model
lemonade run user.snaicc-asistente-granite-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use valentin-marquez/snaicc-asistente-granite with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf valentin-marquez/snaicc-asistente-granite: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:9931/v1 hermes config set model.default valentin-marquez/snaicc-asistente-granite:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use valentin-marquez/snaicc-asistente-granite with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf valentin-marquez/snaicc-asistente-granite: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:9931/v1 \ --custom-model-id "valentin-marquez/snaicc-asistente-granite: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"
SNAICC Asistente Granite (experimental)
Granite 4.0 H Tiny (IBM, 7B en total, ~1B activo por palabra, hรญbrido Mamba y atenciรณn) ajustado con QLoRA para el asistente de preguntas sobre cambio climรกtico en Chile del SNAICC: elige la herramienta que responde la pregunta y redacta una respuesta corta con los datos que trae. Es el mismo trabajo que snaicc-asistente-2b sobre un modelo base mรกs grande. Experimental: hoy rinde menos que la versiรณn 2B vigente.
Desarrollado en el marco del proyecto CBIT-2 (FAO), con el Ministerio del Medio Ambiente de Chile como contraparte tรฉcnica. No es un producto oficial del Ministerio.
Archivo
| Archivo | Tamaรฑo | SHA-256 |
|---|---|---|
snaicc-asistente-granite-exp1-Q4_K_M.gguf |
4,23 GB | 4051bf5979c64d7b977292c8305ed193f77d98912eac0a0d1b5d249df5236d04 |
herramientas.json: instrucciรณn de sistema y las 20 herramientas con las que se entrenรณ. Uso igual que la
versiรณn 2B (llama-server -m ... --jinja -c 8192, temperature 0, reasoning_effort "none"). Probado
con llama.cpp b12283.
Resultados
Aciertos al elegir herramienta en los mismos conjuntos de evaluaciรณn que la versiรณn 2B:
| Conjunto | 2B v3.5 (mismos datos) | 2B v3.6 (vigente) | Granite exp1 |
|---|---|---|---|
| Preguntas de usuarios, 5 conjuntos (750) | 713 | 716 | 683 |
| Seguimientos con turno anterior (80) | 78 | 77 | 73 |
| Fuera de tema (60) | 58 | 56 | 42 |
| Pedir otra explicaciรณn (50) | 38 | 41 | 25 |
| Perfiles profesionales no vistos (90) | 74 | 81 | 79 |
Generaliza mejor que la 2B entrenada con los mismos datos a perfiles que no vio (79 contra 74), pero
cuando duda tiende a declarar la pregunta fuera del tema: 14 de sus 25 errores al pedir otra explicaciรณn
van a no_es_del_tema. En la CPU de 8 nรบcleos del servidor de destino escribe a 17,3 tokens por segundo
(la 2B: 14,9); necesita unos 6 GB de RAM.
Entrenamiento
- Mismos datos que la 2B v3.5: 4.846 ejemplos de elecciรณn (789 con turno anterior) y 914 de redacciรณn, sintรฉticos y verificados contra las APIs. Sin datos personales.
- QLoRA rango 16 sobre atenciรณn y expertos (193 M de parรกmetros, 2,7 %); las capas Mamba sin ajustar. Una รฉpoca, lote 8, en una A100 (37 min).
- Cuantizado a Q4_K_M sin imatrix. El conversor dejรณ mal el metadato
granitehybrid.attention.head_count_kv(todo en cero) y se corrigiรณ en el archivo; los pesos no cambian.
Pendiente para una versiรณn siguiente: ajustar tambiรฉn las capas Mamba, mรกs de una รฉpoca, cuantizar con imatrix y probar sin la instrucciรณn que la plantilla de Granite agrega al sistema ("If a tool does not exist in the provided list of tools, notify the user..."), que puede empujarlo a rechazar.
- Downloads last month
- 79
4-bit
Model tree for valentin-marquez/snaicc-asistente-granite
Base model
ibm-granite/granite-4.0-h-tiny