Instructions to use jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-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-Phi-3-mini-4k-instruct-v1.0-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF", filename="french-alpaca-phi-3-mini-4k-instruct-Q4-v1.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-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 jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF # Run inference directly in the terminal: llama cli -hf jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF # Run inference directly in the terminal: llama cli -hf jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-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-Phi-3-mini-4k-instruct-v1.0-GGUF # Run inference directly in the terminal: ./llama-cli -hf jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-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-Phi-3-mini-4k-instruct-v1.0-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF
Use Docker
docker model run hf.co/jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF
- LM Studio
- Jan
- Ollama
How to use jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF with Ollama:
ollama run hf.co/jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF
- Unsloth Studio
How to use jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.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 jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.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 jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.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 jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF with Docker Model Runner:
docker model run hf.co/jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF
- Lemonade
How to use jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jpacifico/French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF
Run and chat with the model
lemonade run user.French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF-{{QUANT_TAG}}List all available models
lemonade list
French-Alpaca-Phi-3-mini-4k-instruct-v1.0-GGUF (q4_k_m)
May 2024 : currently the fastest and most efficient version of French-Alpaca, the general SLM in French
4k tokens of window context
French-Alpaca is a 3.82B params Small Language Model (SLM) based on microsoft/Phi-3-mini-4k-instruct,
fine-tuned from the original French-Alpaca-dataset entirely generated with OpenAI GPT-3.5-turbo.
The fine-tuning method is inspired from https://crfm.stanford.edu/2023/03/13/alpaca.html
This quantized q4_k_m GGUF version can be used on a CPU device, compatible llama.cpp
Now supported architecture by LM Studio.
Ready for Raspberry Pi 5 8Gb
Usage
ollama run jpacifico/french-alpaca-3b
Ollama Modelfile best example I tested yet:
FROM ./french-alpaca-phi-3-mini-4k-instruct-Q4-v1.gguf
TEMPLATE """{{ if .System }}<|system|>
{{ .System }}<|end|>
{{ end }}{{ if .Prompt }}<|user|>
{{ .Prompt }}<|end|>
{{ end }}<|assistant|>
{{ .Response }}<|end|>
"""
PARAMETER num_keep 4
PARAMETER stop "<|user|>"
PARAMETER stop "<|assistant|>"
PARAMETER stop "<|system|>"
PARAMETER stop "<|end|>"
PARAMETER stop "<|endoftext|>"
PARAMETER stop "###"
PARAMETER stop "<|fin|>"
Limitations :
The French-Alpaca models family is a quick demonstration that a small LM ( < 8B params )
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: MIT
Finetuned from model : microsoft/Phi-3-mini-4k-instruct
- Downloads last month
- 24
We're not able to determine the quantization variants.