Instructions to use alfonsodlg/celulares-gemma3-4b-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use alfonsodlg/celulares-gemma3-4b-gguf with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("alfonsodlg/celulares-gemma3-4b-gguf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use alfonsodlg/celulares-gemma3-4b-gguf 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 alfonsodlg/celulares-gemma3-4b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf alfonsodlg/celulares-gemma3-4b-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf alfonsodlg/celulares-gemma3-4b-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf alfonsodlg/celulares-gemma3-4b-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 alfonsodlg/celulares-gemma3-4b-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf alfonsodlg/celulares-gemma3-4b-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 alfonsodlg/celulares-gemma3-4b-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf alfonsodlg/celulares-gemma3-4b-gguf:Q4_K_M
Use Docker
docker model run hf.co/alfonsodlg/celulares-gemma3-4b-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use alfonsodlg/celulares-gemma3-4b-gguf with Ollama:
ollama run hf.co/alfonsodlg/celulares-gemma3-4b-gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use alfonsodlg/celulares-gemma3-4b-gguf with Docker Model Runner:
docker model run hf.co/alfonsodlg/celulares-gemma3-4b-gguf:Q4_K_M
- Lemonade
How to use alfonsodlg/celulares-gemma3-4b-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull alfonsodlg/celulares-gemma3-4b-gguf:Q4_K_M
Run and chat with the model
lemonade run user.celulares-gemma3-4b-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +97 -0
- celulares-v3-q4_k_m.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
celulares-v3-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- es
|
| 5 |
+
library_name: transformers
|
| 6 |
+
tags:
|
| 7 |
+
- gemma
|
| 8 |
+
- gguf
|
| 9 |
+
- sales
|
| 10 |
+
- conversational
|
| 11 |
+
- spanish
|
| 12 |
+
- fine-tuned
|
| 13 |
+
base_model: google/gemma-3-4b-it
|
| 14 |
+
model_type: gemma3
|
| 15 |
+
quantization: Q4_K_M
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# 🤖 Celulares Gemma 3 4B v3 - Agente de Ventas (GGUF Q4_K_M)
|
| 19 |
+
|
| 20 |
+
Modelo Gemma 3 4B fine-tuned para ventas de celulares en español peruano.
|
| 21 |
+
|
| 22 |
+
## 📊 Especificaciones
|
| 23 |
+
|
| 24 |
+
| Parámetro | Valor |
|
| 25 |
+
|-----------|-------|
|
| 26 |
+
| Modelo base | google/gemma-3-4b-it |
|
| 27 |
+
| Cuantización | Q4_K_M (4-bit) |
|
| 28 |
+
| Tamaño | 2.4 GB |
|
| 29 |
+
| Idioma | Español (Perú) |
|
| 30 |
+
| Contexto | 4,096 tokens |
|
| 31 |
+
| Dataset | 1,017 conversaciones |
|
| 32 |
+
|
| 33 |
+
## 🎯 Uso
|
| 34 |
+
|
| 35 |
+
### Con Ollama
|
| 36 |
+
|
| 37 |
+
```bash
|
| 38 |
+
# Descargar el archivo GGUF
|
| 39 |
+
wget https://huggingface.co/alfonsodlg/celulares-gemma3-4b-gguf/resolve/main/celulares-v3-q4_k_m.gguf
|
| 40 |
+
|
| 41 |
+
# Crear Modelfile
|
| 42 |
+
cat > Modelfile << 'MODELFILE'
|
| 43 |
+
FROM ./celulares-v3-q4_k_m.gguf
|
| 44 |
+
|
| 45 |
+
TEMPLATE "<start_of_turn>user
|
| 46 |
+
{{ .Prompt }}<end_of_turn>
|
| 47 |
+
<start_of_turn>model
|
| 48 |
+
{{ .Response }}<end_of_turn>
|
| 49 |
+
"
|
| 50 |
+
|
| 51 |
+
SYSTEM "Eres un agente de ventas experto en celulares de Coolbox Perú. Tu personalidad es entusiasta, consultiva y orientada a resultados."
|
| 52 |
+
|
| 53 |
+
PARAMETER temperature 0.1
|
| 54 |
+
PARAMETER top_p 0.9
|
| 55 |
+
PARAMETER num_ctx 4096
|
| 56 |
+
PARAMETER stop "<end_of_turn>"
|
| 57 |
+
MODELFILE
|
| 58 |
+
|
| 59 |
+
# Importar a Ollama
|
| 60 |
+
ollama create celulares:v3-q4 -f Modelfile
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
### Ejemplo de uso
|
| 64 |
+
|
| 65 |
+
```python
|
| 66 |
+
import requests
|
| 67 |
+
|
| 68 |
+
response = requests.post('http://localhost:11434/api/generate', json={
|
| 69 |
+
'model': 'celulares:v3-q4',
|
| 70 |
+
'prompt': 'Busco un celular Samsung hasta 1500 soles',
|
| 71 |
+
'stream': False
|
| 72 |
+
})
|
| 73 |
+
print(response.json()['response'])
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
## 📈 Métricas
|
| 77 |
+
|
| 78 |
+
- **Tasa de éxito**: 100% (9/9 tests críticos)
|
| 79 |
+
- **Latencia**: 3-8 segundos (respuesta completa)
|
| 80 |
+
- **RAM**: ~4GB
|
| 81 |
+
|
| 82 |
+
## 🏋️ Entrenamiento
|
| 83 |
+
|
| 84 |
+
- **Plataforma**: Modal (H100)
|
| 85 |
+
- **Framework**: Unsloth
|
| 86 |
+
- **Dataset**: 1,017 conversaciones de ventas
|
| 87 |
+
- **Steps**: 200
|
| 88 |
+
- **Loss final**: ~0.4
|
| 89 |
+
|
| 90 |
+
## 📝 Licencia
|
| 91 |
+
|
| 92 |
+
Apache 2.0
|
| 93 |
+
|
| 94 |
+
## 🔗 Enlaces
|
| 95 |
+
|
| 96 |
+
- [Repositorio del proyecto](https://github.com/alfonsodlg/pricex-smart)
|
| 97 |
+
- [Modelo base Gemma 3](https://huggingface.co/google/gemma-3-4b-it)
|
celulares-v3-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a7f8db1d2b22e3fed717ad6ea291bb19d4ac399ffd4aab099d233385d23c1224
|
| 3 |
+
size 2489893696
|