Instructions to use OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf", filename="Lucie-7B-Instruct-v1.1-q4_k_m.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 OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf OpenLLM-France/Lucie-7B-Instruct-v1.1-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 OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf OpenLLM-France/Lucie-7B-Instruct-v1.1-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 OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf OpenLLM-France/Lucie-7B-Instruct-v1.1-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 OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf:Q4_K_M
Use Docker
docker model run hf.co/OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenLLM-France/Lucie-7B-Instruct-v1.1-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": "OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf:Q4_K_M
- Ollama
How to use OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf with Ollama:
ollama run hf.co/OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf:Q4_K_M
- Unsloth Studio
How to use OpenLLM-France/Lucie-7B-Instruct-v1.1-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 OpenLLM-France/Lucie-7B-Instruct-v1.1-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 OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf to start chatting
- Docker Model Runner
How to use OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf with Docker Model Runner:
docker model run hf.co/OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf:Q4_K_M
- Lemonade
How to use OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf:Q4_K_M
Run and chat with the model
lemonade run user.Lucie-7B-Instruct-v1.1-gguf-Q4_K_M
List all available models
lemonade list
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 OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf to start chattingUsing HuggingFace Spaces for Unsloth
# No setup required# Open https://huggingface.co/spaces/unsloth/studio in your browser
# Search for OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf to start chattingModel Card for Lucie-7B-Instruct-v1.1
Model Description
Lucie-7B-Instruct-v1.1-gguf is a quantized version of Lucie-7B-Instruct-v1.1 (see llama.cpp for quantization details). Lucie-7B-Instruct-v1.1 is a fine-tuned version of Lucie-7B, an open-source, multilingual causal language model created by OpenLLM-France.
Lucie-7B-Instruct is fine-tuned on a mixture of human-templated and synthetic instructions (produced by ChatGPT) and a small set of customized prompts about OpenLLM and Lucie.
Note that this instruction training is light and is meant to allow Lucie to produce responses of a desired type (answer, summary, list, etc.). Lucie-7B-Instruct-v1.1 would need further training before being implemented in pipelines for specific use-cases or for particular generation tasks such as code generation or mathematical problem solving. It is also susceptible to hallucinations; that is, producing false answers that result from its training. Its performance and accuracy can be improved through further fine-tuning and alignment with methods such as DPO, RLHF, etc.
Due to its size, Lucie-7B is limited in the information that it can memorize; its ability to produce correct answers could be improved by implementing the model in a retrieval augmented generation pipeline.
While Lucie-7B-Instruct is trained on sequences of 4096 tokens, its base model, Lucie-7B has a context size of 32K tokens. Based on Needle-in-a-haystack evaluations, Lucie-7B-Instruct maintains the capacity of the base model to handle 32K-size context windows.
Training details
Training data
Lucie-7B-Instruct-v1.1 is trained on the following datasets:
- Alpaca-cleaned-fr (French; 51,655 samples)
- Croissant-Aligned-Instruct (English-French; 20,000 samples taken from 80,000 total)
- ENS (French, 394 samples)
- FLAN v2 Converted (English, 78,580 samples)
- Open Hermes 2.5 (English, 1,000,495 samples)
- Oracle (French, 4,613 samples)
- PIAF (French, 1,849 samples)
- TULU3 Personas Math
- TULU3 Personas Math Grade
- Wildchat (French subset; 26,436 samples)
- Hard-coded prompts concerning OpenLLM and Lucie (based on allenai/tulu-3-hard-coded-10x)
- French: openllm_french.jsonl (24x10 samples)
- English: openllm_english.jsonl (24x10 samples)
One epoch was passed on each dataset except for Croissant-Aligned-Instruct for which we randomly selected 20,000 translation pairs.
Preprocessing
- Filtering by keyword: Examples containing assistant responses were filtered out from the four synthetic datasets if the responses contained a keyword from the list filter_strings. This filter is designed to remove examples in which the assistant is presented as model other than Lucie (e.g., ChatGPT, Gemma, Llama, ...).
Instruction template:
Lucie-7B-Instruct-v1.1 was trained on the chat template from Llama 3.1 with the sole difference that <|begin_of_text|> is replaced with <s>. The resulting template:
<s><|start_header_id|>system<|end_header_id|>
{SYSTEM}<|eot_id|><|start_header_id|>user<|end_header_id|>
{INPUT}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
{OUTPUT}<|eot_id|>
An example:
<s><|start_header_id|>system<|end_header_id|>
You are a helpful assistant.<|eot_id|><|start_header_id|>user<|end_header_id|>
Give me three tips for staying in shape.<|eot_id|><|start_header_id|>assistant<|end_header_id|>
1. Eat a balanced diet and be sure to include plenty of fruits and vegetables. \n2. Exercise regularly to keep your body active and strong. \n3. Get enough sleep and maintain a consistent sleep schedule.<|eot_id|>
Training procedure
The model architecture and hyperparameters are the same as for Lucie-7B during the annealing phase with the following exceptions:
- context length: 4096*
- batch size: 1024
- max learning rate: 3e-5
- min learning rate: 3e-6
*As noted above, while Lucie-7B-Instruct is trained on sequences of 4096 tokens, it maintains the capacity of the base model, Lucie-7B, to handle context sizes of up to 32K tokens.
Testing the model with ollama
- Download and install Ollama
- Download the GGUF model
- Copy the
Modelfile, adapting if necessary the path to the GGUF file (line starting withFROM). - Run in a shell:
ollama create -f Modelfile Lucieollama run Lucie
- Once ">>>" appears, type your prompt(s) and press Enter.
- Optionally, restart a conversation by typing "
/clear" - End the session by typing "
/bye".
Useful for debug:
- How to print input requests and output responses in Ollama server?
- Documentation on Modelfile
- Examples: Ollama model library
- Llama 3 example: https://ollama.com/library/llama3.1
- Examples: Ollama model library
- Add GUI : https://docs.openwebui.com/
Citation
When using the Lucie-7B-Instruct model, please cite the following paper:
✍ Olivier Gouvert, Julie Hunter, Jérôme Louradour, Christophe Cérisara, Evan Dufraisse, Yaya Sy, Laura Rivière, Jean-Pierre Lorré (2025). The Lucie-7B LLM and the Lucie Training Dataset: open resources for multilingual language generation
@misc{openllm2025lucie,
title={The Lucie-7B LLM and the Lucie Training Dataset:
open resources for multilingual language generation},
author={Olivier Gouvert and Julie Hunter and Jérôme Louradour and Christophe Cérisara and Evan Dufraisse and Yaya Sy and Laura Rivière and Jean-Pierre Lorré},
year={2025},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Acknowledgements
This work was performed using HPC resources from GENCI–IDRIS (Grant 2024-GC011015444). We gratefully acknowledge support from GENCI and IDRIS and from Pierre-François Lavallée (IDRIS) and Stephane Requena (GENCI) in particular.
Lucie-7B-Instruct-v1.1 was created by members of LINAGORA and the OpenLLM-France community, including in alphabetical order: Olivier Gouvert (LINAGORA), Ismaïl Harrando (LINAGORA/SciencesPo), Julie Hunter (LINAGORA), Jean-Pierre Lorré (LINAGORA), Jérôme Louradour (LINAGORA), Michel-Marie Maudet (LINAGORA), and Laura Rivière (LINAGORA).
We thank Clément Bénesse (Opsci), Christophe Cerisara (LORIA), Émile Hazard (Opsci), Evan Dufraisse (CEA List), Guokan Shang (MBZUAI), Joël Gombin (Opsci), Jordan Ricker (Opsci), and Olivier Ferret (CEA List) for their helpful input.
Finally, we thank the entire OpenLLM-France community, whose members have helped in diverse ways.
Contact
- Downloads last month
- 60
4-bit
Model tree for OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf
Base model
OpenLLM-France/Lucie-7B
Install Unsloth Studio (macOS, Linux, WSL)
# Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for OpenLLM-France/Lucie-7B-Instruct-v1.1-gguf to start chatting