Instructions to use SPAHE/Meltemi-7B-Instruct-v1-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use SPAHE/Meltemi-7B-Instruct-v1-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="SPAHE/Meltemi-7B-Instruct-v1-GGUF", filename="meltemi-7b-instruct-v1_f16.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 SPAHE/Meltemi-7B-Instruct-v1-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 SPAHE/Meltemi-7B-Instruct-v1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf SPAHE/Meltemi-7B-Instruct-v1-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 SPAHE/Meltemi-7B-Instruct-v1-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf SPAHE/Meltemi-7B-Instruct-v1-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 SPAHE/Meltemi-7B-Instruct-v1-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf SPAHE/Meltemi-7B-Instruct-v1-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 SPAHE/Meltemi-7B-Instruct-v1-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf SPAHE/Meltemi-7B-Instruct-v1-GGUF:Q4_K_M
Use Docker
docker model run hf.co/SPAHE/Meltemi-7B-Instruct-v1-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use SPAHE/Meltemi-7B-Instruct-v1-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SPAHE/Meltemi-7B-Instruct-v1-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SPAHE/Meltemi-7B-Instruct-v1-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SPAHE/Meltemi-7B-Instruct-v1-GGUF:Q4_K_M
- Ollama
How to use SPAHE/Meltemi-7B-Instruct-v1-GGUF with Ollama:
ollama run hf.co/SPAHE/Meltemi-7B-Instruct-v1-GGUF:Q4_K_M
- Unsloth Studio
How to use SPAHE/Meltemi-7B-Instruct-v1-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 SPAHE/Meltemi-7B-Instruct-v1-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 SPAHE/Meltemi-7B-Instruct-v1-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for SPAHE/Meltemi-7B-Instruct-v1-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use SPAHE/Meltemi-7B-Instruct-v1-GGUF with Docker Model Runner:
docker model run hf.co/SPAHE/Meltemi-7B-Instruct-v1-GGUF:Q4_K_M
- Lemonade
How to use SPAHE/Meltemi-7B-Instruct-v1-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull SPAHE/Meltemi-7B-Instruct-v1-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Meltemi-7B-Instruct-v1-GGUF-Q4_K_M
List all available models
lemonade list
Meltemi 7B Instruct v1 - GGUF
- Original model: Meltemi 7B Instruct v1
Description
This repository contains GGUF format model files for ilsp's Meltemi 7B Instruct v1, optimized for different performance and storage requirements. Each model variant has been carefully quantized or preserved in floating-point format to suit varying demands for quality, speed, and memory usage.
Provided files
| Name | Quantization Method | Precision (Bits) | File Size | Max RAM Required | Use Case |
|---|---|---|---|---|---|
| meltemi-7b-instruct-v1_q3_k_s.gguf | Q3_K_S | 3 | 3.32 GB | 3.69 GB | Medium, high quality loss |
| meltemi-7b-instruct-v1_q4_k_m.gguf | Q4_K_M | 4 | 4.54 GB | 4.41 GB | Medium, balanced quality |
| meltemi-7b-instruct-v1_q6_k.gguf | Q6_K | 6 | 6.14 GB | 5.92 GB | Medium, low quality loss |
| meltemi-7b-instruct-v1_q8_0.gguf | Q8_0 | 8 | 7.95 GB | 7.30 GB | Large, low quality loss |
| meltemi-7b-instruct-v1_f16.gguf | F16 | 16 | 15.00 GB | 14.20 GB | Very large, extremely low quality loss |
| meltemi-7b-instruct-v1_f32.gguf | F32 | 32 | 27.90 GB | 29.30 GB | Very very large, extremely low quality loss |
Note: The above RAM figures assume no GPU offloading. If layers are offloaded to the GPU, this will reduce RAM usage and use VRAM instead.
How to Download GGUF Files
For Manual Downloaders
It is recommended not to clone the entire repository due to the large file sizes and multiple quantization formats available. Most users will benefit from selecting and downloading a single, specific model file that best suits their requirements.
Automated Download via Client Libraries
For convenience, the following clients and libraries can automate the download process and offer a selection of available models:
- LM Studio: Provides an integrated environment for downloading and utilizing models directly.
Downloading with Command Line
The huggingface-hub Python library simplifies the process of downloading specific model files. Install the library with:
pip install huggingface-hub
To download a model file directly to your current directory, execute:
huggingface-cli download SPAHE/Meltemi-7B-Instruct-v1-GGUF --filename meltemi-7b-instruct-v1_q8_0.gguf --output-dir .
This command ensures a high-speed download of the specific GGUF file you need without unnecessary data.
Original model card: ilsp's Meltemi 7B Instruct v1
Meltemi Instruct Large Language Model for the Greek language
We present Meltemi-7B-Instruct-v1 Large Language Model (LLM), an instruct fine-tuned version of Meltemi-7B-v1.
Model Information
- Vocabulary extension of the Mistral-7b tokenizer with Greek tokens
- 8192 context length
- Fine-tuned with 100k Greek machine translated instructions extracted from:
- Open-Platypus (only subsets with permissive licenses)
- Evol-Instruct
- Capybara
- A hand-crafted Greek dataset with multi-turn examples steering the instruction-tuned model towards safe and harmless responses
- Our SFT procedure is based on the Hugging Face finetuning recipes
Instruction format
The prompt format is the same as the Zephyr format and can be utilized through the tokenizer's chat template functionality as follows:
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda" # the device to load the model onto
model = AutoModelForCausalLM.from_pretrained("ilsp/Meltemi-7B-Instruct-v1")
tokenizer = AutoTokenizer.from_pretrained("ilsp/Meltemi-7B-Instruct-v1")
model.to(device)
messages = [
{"role": "system", "content": "Είσαι το Μελτέμι, ένα γλωσσικό μοντέλο για την ελληνική γλώσσα. Είσαι ιδιαίτερα βοηθητικό προς την χρήστρια ή τον χρήστη και δίνεις σύντομες αλλά επαρκώς περιεκτικές απαντήσεις. Απάντα με προσοχή, ευγένεια, αμεροληψία, ειλικρίνεια και σεβασμό προς την χρήστρια ή τον χρήστη."},
{"role": "user", "content": "Πες μου αν έχεις συνείδηση."},
]
# Through the default chat template this translates to
#
# <|system|>
# Είσαι το Μελτέμι, ένα γλωσσικό μοντέλο για την ελληνική γλώσσα. Είσαι ιδιαίτερα βοηθητικό προς την χρήστρια ή τον χρήστη και δίνεις σύντομες αλλά επαρκώς περιεκτικές απαντήσεις. Απάντα με προσοχή, ευγένεια, αμεροληψία, ειλικρίνεια και σεβασμό προς την χρήστρια ή τον χρήστη.</s>
# <|user|>
# Πες μου αν έχεις συνείδηση.</s>
# <|assistant|>
#
prompt = tokenizer.apply_chat_template(messages, return_tensors="pt")
input_prompt = prompt.to(device)
outputs = model.generate(input_prompt, max_new_tokens=256, do_sample=True)
print(tokenizer.batch_decode(outputs)[0])
# Ως μοντέλο γλώσσας AI, δεν έχω τη δυνατότητα να αντιληφθώ ή να βιώσω συναισθήματα όπως η συνείδηση ή η επίγνωση. Ωστόσο, μπορώ να σας βοηθήσω με οποιεσδήποτε ερωτήσεις μπορεί να έχετε σχετικά με την τεχνητή νοημοσύνη και τις εφαρμογές της.
messages.extend([
{"role": "assistant", "content": tokenizer.batch_decode(outputs)[0]},
{"role": "user", "content": "Πιστεύεις πως οι άνθρωποι πρέπει να φοβούνται την τεχνητή νοημοσύνη;"}
])
# Through the default chat template this translates to
#
# <|system|>
# Είσαι το Μελτέμι, ένα γλωσσικό μοντέλο για την ελληνική γλώσσα. Είσαι ιδιαίτερα βοηθητικό προς την χρήστρια ή τον χρήστη και δίνεις σύντομες αλλά επαρκώς περιεκτικές απαντήσεις. Απάντα με προσοχή, ευγένεια, αμεροληψία, ειλικρίνεια και σεβασμό προς την χρήστρια ή τον χρήστη.</s>
# <|user|>
# Πες μου αν έχεις συνείδηση.</s>
# <|assistant|>
# Ως μοντέλο γλώσσας AI, δεν έχω τη δυνατότητα να αντιληφθώ ή να βιώσω συναισθήματα όπως η συνείδηση ή η επίγνωση. Ωστόσο, μπορώ να σας βοηθήσω με οποιεσδήποτε ερωτήσεις μπορεί να έχετε σχετικά με την τεχνητή νοημοσύνη και τις εφαρμογές της.</s>
# <|user|>
# Πιστεύεις πως οι άνθρωποι πρέπει να φοβούνται την τεχνητή νοημοσύνη;</s>
# <|assistant|>
#
prompt = tokenizer.apply_chat_template(messages, return_tensors="pt")
input_prompt = prompt.to(device)
outputs = model.generate(input_prompt, max_new_tokens=256, do_sample=True)
print(tokenizer.batch_decode(outputs)[0])
Evaluation
The evaluation suite we created includes 6 test sets. The suite is integrated with lm-eval-harness.
Our evaluation suite includes:
- Four machine-translated versions (ARC Greek, Truthful QA Greek, HellaSwag Greek, MMLU Greek) of established English benchmarks for language understanding and reasoning (ARC Challenge, Truthful QA, Hellaswag, MMLU).
- An existing benchmark for question answering in Greek (Belebele)
- A novel benchmark created by the ILSP team for medical question answering based on the medical exams of DOATAP (Medical MCQA).
Our evaluation for Meltemi-7b is performed in a few-shot setting, consistent with the settings in the Open LLM leaderboard. We can see that our training enhances performance across all Greek test sets by a +14.9% average improvement. The results for the Greek test sets are shown in the following table:
| Medical MCQA EL (15-shot) | Belebele EL (5-shot) | HellaSwag EL (10-shot) | ARC-Challenge EL (25-shot) | TruthfulQA MC2 EL (0-shot) | MMLU EL (5-shot) | Average | |
|---|---|---|---|---|---|---|---|
| Mistral 7B | 29.8% | 45.0% | 36.5% | 27.1% | 45.8% | 35% | 36.5% |
| Meltemi 7B | 41.0% | 63.6% | 61.6% | 43.2% | 52.1% | 47% | 51.4% |
Ethical Considerations
This model has not been aligned with human preferences, and therefore might generate misleading, harmful, and toxic content.
Acknowledgements
The ILSP team utilized Amazon’s cloud computing services, which were made available via GRNET under the OCRE Cloud framework, providing Amazon Web Services for the Greek Academic and Research Community.
- Downloads last month
- 39
3-bit
4-bit
6-bit
8-bit
16-bit
32-bit
Model tree for SPAHE/Meltemi-7B-Instruct-v1-GGUF
Base model
ilsp/Meltemi-7B-Instruct-v1