Instructions to use jpacifico/french-alpaca-instruct-Q4-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use jpacifico/french-alpaca-instruct-Q4-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="jpacifico/french-alpaca-instruct-Q4-GGUF", filename="french-alpaca-instruct-Q4.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jpacifico/french-alpaca-instruct-Q4-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf jpacifico/french-alpaca-instruct-Q4-GGUF # Run inference directly in the terminal: llama-cli -hf jpacifico/french-alpaca-instruct-Q4-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf jpacifico/french-alpaca-instruct-Q4-GGUF # Run inference directly in the terminal: llama-cli -hf jpacifico/french-alpaca-instruct-Q4-GGUF
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 jpacifico/french-alpaca-instruct-Q4-GGUF # Run inference directly in the terminal: ./llama-cli -hf jpacifico/french-alpaca-instruct-Q4-GGUF
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 jpacifico/french-alpaca-instruct-Q4-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf jpacifico/french-alpaca-instruct-Q4-GGUF
Use Docker
docker model run hf.co/jpacifico/french-alpaca-instruct-Q4-GGUF
- LM Studio
- Jan
- Ollama
How to use jpacifico/french-alpaca-instruct-Q4-GGUF with Ollama:
ollama run hf.co/jpacifico/french-alpaca-instruct-Q4-GGUF
- Unsloth Studio
How to use jpacifico/french-alpaca-instruct-Q4-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 jpacifico/french-alpaca-instruct-Q4-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 jpacifico/french-alpaca-instruct-Q4-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for jpacifico/french-alpaca-instruct-Q4-GGUF to start chatting
- Docker Model Runner
How to use jpacifico/french-alpaca-instruct-Q4-GGUF with Docker Model Runner:
docker model run hf.co/jpacifico/french-alpaca-instruct-Q4-GGUF
- Lemonade
How to use jpacifico/french-alpaca-instruct-Q4-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jpacifico/french-alpaca-instruct-Q4-GGUF
Run and chat with the model
lemonade run user.french-alpaca-instruct-Q4-GGUF-{{QUANT_TAG}}List all available models
lemonade list
French-Alpaca-Instruct Q4
Quantized 4bits Q4_K_M version of jpacifico/French-Alpaca-7B-Instruct-beta
This quantized Q4_K_M GGUF (4bits) version of French-Alpaca-7B-Instruct-beta
can be used on a CPU device incl. Raspberry Pi 5 8gb, and is supported by LLM cpp tools (llama.cpp, Ollama, LM Studio ..)
Usage
Ollama Modelfile example :
FROM ./french-alpaca-instruct-Q4.gguf
TEMPLATE """Tu trouveras ci-dessous une instruction qui décrit une tâche. Rédige une réponse qui complète de manière appropriée la demande.
{{ if .System }}### Instruction:
{{ .System }}{{ end }}
{{ if .Prompt }}### Input:
{{ .Prompt }}{{ end }}
### Response:
"""
PARAMETER stop "### Response:"
PARAMETER stop "### Instruction:"
PARAMETER stop "### Input:"
PARAMETER stop "Tu trouveras ci-dessous une instruction qui décrit une tâche. Rédige une réponse qui complète de manière appropriée la demande."
PARAMETER num_predict 300
Limitations
The French-Alpaca model is a quick demonstration that a base 7B model can be easily fine-tuned to specialize in a particular language. It does not have any moderation mechanisms.
- Developed by: Jonathan Pacifico, 2024
- Model type: LLM
- Language(s) (NLP): French
- License: Apache-2.0
- Downloads last month
- 21
We're not able to determine the quantization variants.