Instructions to use thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF", filename="gua-a_v0.1-ft_mistral-7b_q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf thinkPy/gua-a_v0.1-ft_mistral-7b_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 thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf thinkPy/gua-a_v0.1-ft_mistral-7b_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 thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf thinkPy/gua-a_v0.1-ft_mistral-7b_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 thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF:Q4_K_M
Use Docker
docker model run hf.co/thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF:Q4_K_M
- Ollama
How to use thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF with Ollama:
ollama run hf.co/thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF:Q4_K_M
- Unsloth Studio new
How to use thinkPy/gua-a_v0.1-ft_mistral-7b_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 thinkPy/gua-a_v0.1-ft_mistral-7b_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 thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF to start chatting
- Docker Model Runner
How to use thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF with Docker Model Runner:
docker model run hf.co/thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF:Q4_K_M
- Lemonade
How to use thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull thinkPy/gua-a_v0.1-ft_mistral-7b_GGUF:Q4_K_M
Run and chat with the model
lemonade run user.gua-a_v0.1-ft_mistral-7b_GGUF-Q4_K_M
List all available models
lemonade list
gua-a v0.1 GGUF
En la mitología guarani: El padre de la sabiduria usaba un gua'a o loro para intentar comunicarse con su dios supremo Tupã. Haciendo la misma analogía creamos el modelo "gua-a" para difundir la cultura guarani a todos los hispanohablantes.
🦜 Model Details
gua-a v0.1: Esta es una versión específica del modelo de lenguaje desarrollado en somosnlp/gua-a para capturar y comprender instrucciones relacionadas con la cultura guaraní. Fue ajustado con datos específicos de la cultura guaraní según el libro Ñande Ypykuéra de Narciso R. Colmán. gua-a v0.1 deriva de un modelo base Mistral 7B y se optimiza mediante la cuantización a 4 bits y el almacenamiento en el formato GGUF para mejorar su eficiencia en términos de almacenamiento y cálculo. Esto lo hace más adecuado para despliegues en entornos con recursos limitados, sin comprometer significativamente su capacidad para comprender y generar texto de alta calidad.
Model Description
- Developed by: Enrique Paiva
- Funded by: Think Paraguayo
- Model type: Language model, instruction tuned
- Language(s):
es-ES - License: apache-2.0
- Fine-tuned from model: unsloth/mistral-7b-bnb-4bit
- Dataset used: somosnlp/dataset-cultura-guarani_corpus-it
Provided files
| Name | Quant method | Bits | Size | Max RAM required | Use case |
|---|---|---|---|---|---|
| gua-a_v0.1-ft_mistral-7b_q4_K_M.gguf | Q4_K_M | 4 | 4.37 GB | 4.16 GB | medium, balanced quality - recommended |
Nota: las cifras de RAM anteriores asumen que no se utiliza la GPU. Si las capas se descargan en la GPU, se reducirá el uso de RAM y se utilizará VRAM en su lugar.
⭐ Uses
Este modelo está pensado para su uso exclusivamente educativo, permitiendo que las personas puedan adentrarse más al mundo de la cultura guaraní desde la Inteligencia Artificial.
🤖 How to Get Started with the Model
Download model ⬇️
Puedes descargar el modelo directamente por medio del siguiente enlace: DOWNLOAD GUA-A-V0.1-GGUF
Prompt template: Alpaca 🧾
Responde a preguntas de forma clara, amable, concisa y solamente en el lenguaje español, sobre el libro Ñande Ypykuéra.
Contexto
-------------------------
{}
-------------------------
### Pregunta:
{}
### Respuesta:
{}
Llamacpp 🦙
Install dependencies
# Si vas a utilizar solo CPU
pip install llama-cpp-python
# Si tienes una GPU basada en NVidia CUDA acceleration
CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install llama-cpp-python
# O con OpenBLAS acceleration
CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama-cpp-python
# O con CLBLast acceleration
CMAKE_ARGS="-DLLAMA_CLBLAST=on" pip install llama-cpp-python
# O con AMD ROCm GPU acceleration (Linux only)
CMAKE_ARGS="-DLLAMA_HIPBLAS=on" pip install llama-cpp-python
# O con Metal GPU acceleration for macOS systems only
CMAKE_ARGS="-DLLAMA_METAL=on" pip install llama-cpp-python
# En windows, ejemplo para NVidia CUDA:
$env:CMAKE_ARGS = "-DLLAMA_CUBLAS=on"
pip install llama-cpp-python
Simple Inference
from llama_cpp import Llama
llm = Llama(
model_path="./gua-a_v0.1-ft_mistral-7b_q4_K_M.gguf", # Primero debes descargar el modelo
n_ctx=512, # Máximo tamaño del contexto
n_threads=2, # Número de CPUs a usar
n_gpu_layers=0 # El número de capas usadas para la GPU, si es "-1" utilizará todas las capas en la GPU, si es "0" solo se utilizará la CPU.
)
prompt = f"""Responde a preguntas de forma clara, amable, concisa y solamente en el lenguaje español, sobre el libro Ñande Ypykuéra.
Contexto
-------------------------
{context}
-------------------------
### Pregunta:
{query}
### Respuesta:
"""
contexto = ""
pregunta = "Quién es gua'a?"
# Ejemplo Simple de Inferencia
output = llm(prompt.format(context=contexto, query=pregunta),
max_tokens=512,
stop=["</s>"],
echo=True
)
respuesta = output['choices'][0]['text'].split("### Respuesta:\n")[1]
print(respuesta)
Bias, Risks, and Limitations
El modelo gua-a_v0.1-ft_mistral-7b_GGUF es un modelo experimental, las respuestas pueden ser imprecisas y de baja calidad. El dataset utilizado por el modelo solo refleja parte de la cultura guaraní, limitandose a la visión del autor del libro.
More Information
Este proyecto fue desarrollado por Think Paraguayo 🇵🇾.
Team:
Contact
- Downloads last month
- 19
4-bit