Instructions to use vinai/PhoGPT-4B-Chat-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use vinai/PhoGPT-4B-Chat-gguf with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("vinai/PhoGPT-4B-Chat-gguf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use vinai/PhoGPT-4B-Chat-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 vinai/PhoGPT-4B-Chat-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf vinai/PhoGPT-4B-Chat-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 vinai/PhoGPT-4B-Chat-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf vinai/PhoGPT-4B-Chat-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 vinai/PhoGPT-4B-Chat-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf vinai/PhoGPT-4B-Chat-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 vinai/PhoGPT-4B-Chat-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf vinai/PhoGPT-4B-Chat-gguf:Q4_K_M
Use Docker
docker model run hf.co/vinai/PhoGPT-4B-Chat-gguf:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use vinai/PhoGPT-4B-Chat-gguf with Ollama:
ollama run hf.co/vinai/PhoGPT-4B-Chat-gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use vinai/PhoGPT-4B-Chat-gguf with Docker Model Runner:
docker model run hf.co/vinai/PhoGPT-4B-Chat-gguf:Q4_K_M
- Lemonade
How to use vinai/PhoGPT-4B-Chat-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull vinai/PhoGPT-4B-Chat-gguf:Q4_K_M
Run and chat with the model
lemonade run user.PhoGPT-4B-Chat-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
PhoGPT: Generative Pre-training for Vietnamese
We open-source a state-of-the-art 4B-parameter generative model series for Vietnamese, which includes the base pre-trained monolingual model PhoGPT-4B and its chat variant, PhoGPT-4B-Chat. The base model, PhoGPT-4B, with exactly 3.7B parameters, is pre-trained from scratch on a Vietnamese corpus of 102B tokens, with an 8192 context length, employing a vocabulary of 20480 token types. The chat variant, PhoGPT-4B-Chat, is the modeling output obtained by fine-tuning PhoGPT-4B on a dataset of 70K instructional prompts and their responses, along with an additional 290K conversations. We demonstrate its superior performance compared to previous open-source models. More details about the general architecture and experimental results of PhoGPT can be found in our technical report:
@article{PhoGPT,
title = {{PhoGPT: Generative Pre-training for Vietnamese}},
author = {Dat Quoc Nguyen and Linh The Nguyen and Chi Tran and Dung Ngoc Nguyen and Dinh Phung and Hung Bui},
journal = {arXiv preprint},
volume = {arXiv:2311.02945},
year = {2023}
}
Please CITE our technical report when PhoGPT is used to help produce published results or is incorporated into other software.
For further information or requests, please go to PhoGPT's homepage!
- Downloads last month
- 329