Text Generation
Transformers
Safetensors
GGUF
French
English
llama
text-generation-inference
trl
text2text-generation
conversational
Instructions to use Volko76/Lucie-7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Volko76/Lucie-7B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Volko76/Lucie-7B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Volko76/Lucie-7B-Instruct") model = AutoModelForCausalLM.from_pretrained("Volko76/Lucie-7B-Instruct", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Volko76/Lucie-7B-Instruct 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 Volko76/Lucie-7B-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf Volko76/Lucie-7B-Instruct:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Volko76/Lucie-7B-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf Volko76/Lucie-7B-Instruct: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 Volko76/Lucie-7B-Instruct:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Volko76/Lucie-7B-Instruct: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 Volko76/Lucie-7B-Instruct:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Volko76/Lucie-7B-Instruct:Q4_K_M
Use Docker
docker model run hf.co/Volko76/Lucie-7B-Instruct:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Volko76/Lucie-7B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Volko76/Lucie-7B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Volko76/Lucie-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Volko76/Lucie-7B-Instruct:Q4_K_M
- SGLang
How to use Volko76/Lucie-7B-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Volko76/Lucie-7B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Volko76/Lucie-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Volko76/Lucie-7B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Volko76/Lucie-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Volko76/Lucie-7B-Instruct with Ollama:
ollama run hf.co/Volko76/Lucie-7B-Instruct:Q4_K_M
- Unsloth Studio
How to use Volko76/Lucie-7B-Instruct 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 Volko76/Lucie-7B-Instruct 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 Volko76/Lucie-7B-Instruct to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Volko76/Lucie-7B-Instruct to start chatting
- Docker Model Runner
How to use Volko76/Lucie-7B-Instruct with Docker Model Runner:
docker model run hf.co/Volko76/Lucie-7B-Instruct:Q4_K_M
- Lemonade
How to use Volko76/Lucie-7B-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Volko76/Lucie-7B-Instruct:Q4_K_M
Run and chat with the model
lemonade run user.Lucie-7B-Instruct-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Update readme
Browse files
README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
datasets:
|
| 4 |
- yahma/alpaca-cleaned
|
| 5 |
- cmh/alpaca_data_cleaned_fr_52k
|
|
@@ -10,7 +15,7 @@ language:
|
|
| 10 |
- en
|
| 11 |
base_model:
|
| 12 |
- OpenLLM-France/Lucie-7B
|
| 13 |
-
pipeline_tag:
|
| 14 |
---
|
| 15 |
|
| 16 |
# Model Card for Lucie-7B-Instruct
|
|
@@ -72,11 +77,8 @@ The model architecture and hyperparameters are the same as for [Lucie-7B](https:
|
|
| 72 |
### Test with ollama
|
| 73 |
|
| 74 |
* Download and install [Ollama](https://ollama.com/download)
|
| 75 |
-
* Download the [GGUF model](https://huggingface.co/OpenLLM-France/Lucie-7B-Instruct/resolve/main/Lucie-7B-q4_k_m.gguf)
|
| 76 |
-
* Copy the [`Modelfile`](Modelfile), adpating if necessary the path to the GGUF file (line starting with `FROM`).
|
| 77 |
* Run in a shell:
|
| 78 |
-
* `ollama
|
| 79 |
-
* `ollama run Lucie`
|
| 80 |
* Once ">>>" appears, type your prompt(s) and press Enter.
|
| 81 |
* Optionally, restart a conversation by typing "`/clear`"
|
| 82 |
* End the session by typing "`/bye`".
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
tags:
|
| 4 |
+
- text-generation-inference
|
| 5 |
+
- transformers
|
| 6 |
+
- llama
|
| 7 |
+
- trl
|
| 8 |
datasets:
|
| 9 |
- yahma/alpaca-cleaned
|
| 10 |
- cmh/alpaca_data_cleaned_fr_52k
|
|
|
|
| 15 |
- en
|
| 16 |
base_model:
|
| 17 |
- OpenLLM-France/Lucie-7B
|
| 18 |
+
pipeline_tag: text2text-generation
|
| 19 |
---
|
| 20 |
|
| 21 |
# Model Card for Lucie-7B-Instruct
|
|
|
|
| 77 |
### Test with ollama
|
| 78 |
|
| 79 |
* Download and install [Ollama](https://ollama.com/download)
|
|
|
|
|
|
|
| 80 |
* Run in a shell:
|
| 81 |
+
* `ollama run hf.co/OpenLLM-France/Lucie-7B-Instruct`
|
|
|
|
| 82 |
* Once ">>>" appears, type your prompt(s) and press Enter.
|
| 83 |
* Optionally, restart a conversation by typing "`/clear`"
|
| 84 |
* End the session by typing "`/bye`".
|