Instructions to use gsarti/phi3-mini-rebus-solver-Q8_0-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gsarti/phi3-mini-rebus-solver-Q8_0-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gsarti/phi3-mini-rebus-solver-Q8_0-GGUF", dtype="auto") - llama-cpp-python
How to use gsarti/phi3-mini-rebus-solver-Q8_0-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="gsarti/phi3-mini-rebus-solver-Q8_0-GGUF", filename="unsloth.Q8_0.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use gsarti/phi3-mini-rebus-solver-Q8_0-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: llama-cli -hf gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0
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 gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0
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 gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0
Use Docker
docker model run hf.co/gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0
- LM Studio
- Jan
- Ollama
How to use gsarti/phi3-mini-rebus-solver-Q8_0-GGUF with Ollama:
ollama run hf.co/gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0
- Unsloth Studio new
How to use gsarti/phi3-mini-rebus-solver-Q8_0-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 gsarti/phi3-mini-rebus-solver-Q8_0-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 gsarti/phi3-mini-rebus-solver-Q8_0-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for gsarti/phi3-mini-rebus-solver-Q8_0-GGUF to start chatting
- Docker Model Runner
How to use gsarti/phi3-mini-rebus-solver-Q8_0-GGUF with Docker Model Runner:
docker model run hf.co/gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0
- Lemonade
How to use gsarti/phi3-mini-rebus-solver-Q8_0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull gsarti/phi3-mini-rebus-solver-Q8_0-GGUF:Q8_0
Run and chat with the model
lemonade run user.phi3-mini-rebus-solver-Q8_0-GGUF-Q8_0
List all available models
lemonade list
Phi-3 Mini 4K Verbalized Rebus Solver - GGUF Q8_0 🇮🇹
This model is a parameter-efficient fine-tuned version of Phi-3 Mini 4K trained for verbalized rebus solving in Italian, as part of the release for our paper Non Verbis, Sed Rebus: Large Language Models are Weak Solvers of Italian Rebuses. The task of verbalized rebus solving consists of converting an encrypted sequence of letters and crossword definitions into a solution phrase matching the word lengths specified in the solution key. An example is provided below.
The model was trained in 4-bit precision for 5070 steps on the verbalized subset of the EurekaRebus using QLora via Unsloth and TRL. This repository contains the GGUF exported checkpoint of the model in Q8_0 format, and the Modelfile for usage with Ollama (see below).
We also provide adapter checkpoints through training and FP16 merged versions of this model for analysis and local execution.
Local usage with Ollama
A ready-to-use local version of this model is hosted on the Ollama Hub and can be used as follows:
ollama run gsarti/phi3-mini-rebus-solver "Rebus: [Materiale espulso dai vulcani] R O [Strumento del calzolaio] [Si trovano ai lati del bacino] C I [Si ingrassano con la polenta] E I N [Contiene scorte di cibi] B [Isola in francese]\nChiave risolutiva: 1 ' 5 6 5 3 3 1 14"
# EXAMPLE GENERATION:
#
# Procediamo alla risoluzione del rebus passo per passo:
# - [Materiale espulso dai vulcani] = lava
# - R O = R O
# - [Strumento del calzolaio] = lesina
# - [Si trovano ai lati del bacino] = anche
# - C I = C I
# - [Si ingrassano con la polenta] = oche
# - E I N = E I N
# - [Contiene scorte di cibi] = silos
# - B = B
# - [Isola in francese] = ile
#
# Prima lettura: lava R O lesina anche C I oche E I N dispensa B ile
#
# Ora componiamo la soluzione seguendo la chiave risolutiva:
# 1 = L
# ' = '
# 5 = avaro
# 6 = lesina
# 5 = anche
# 3 = ciò
# 3 = che
# 1 = è
# 14 = insilosbile
#
# Soluzione: L'avaro lesina anche ciò che è insilosbile
Limitations
Lexical overfitting: As remarked in the related publication, the model overfitted the set of definitions/answers for first pass words. As a result, words that were explicitly witheld from the training set cause significant performance degradation when used as solutions for verbalized rebuses' definitions. You can compare model performances between in-domain and out-of-domain test examples to verify this limitation.
Model curators
For problems or updates on this model, please contact gabriele.sarti996@gmail.com.
Citation Information
If you use this model in your work, please cite our paper as follows:
@article{sarti-etal-2024-rebus,
title = "Non Verbis, Sed Rebus: Large Language Models are Weak Solvers of Italian Rebuses",
author = "Sarti, Gabriele and Caselli, Tommaso and Nissim, Malvina and Bisazza, Arianna",
journal = "ArXiv",
month = jul,
year = "2024",
volume = {abs/2408.00584},
url = {https://arxiv.org/abs/2408.00584},
}
Acknowledgements
We are grateful to the Associazione Culturale "Biblioteca Enigmistica Italiana - G. Panini" for making its rebus collection freely accessible on the Eureka5 platform.
- Downloads last month
- 56
8-bit
Model tree for gsarti/phi3-mini-rebus-solver-Q8_0-GGUF
Base model
unsloth/Phi-3-mini-4k-instruct-v0-bnb-4bitDataset used to train gsarti/phi3-mini-rebus-solver-Q8_0-GGUF
Collection including gsarti/phi3-mini-rebus-solver-Q8_0-GGUF
Paper for gsarti/phi3-mini-rebus-solver-Q8_0-GGUF
Evaluation results
- First Pass Exact Match on EurekaRebustest set self-reported0.560
- Solution Exact Match on EurekaRebustest set self-reported0.510
