Instructions to use QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF", filename="Llama-3-8B-ProLong-512k-Base.Q2_K.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Llama-3-8B-ProLong-512k-Base-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 QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Llama-3-8B-ProLong-512k-Base-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 QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/Llama-3-8B-ProLong-512k-Base-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 QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF with Ollama:
ollama run hf.co/QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/Llama-3-8B-ProLong-512k-Base-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 QuantFactory/Llama-3-8B-ProLong-512k-Base-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 QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF to start chatting
- Docker Model Runner
How to use QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Llama-3-8B-ProLong-512k-Base-GGUF-Q4_K_M
List all available models
lemonade list
QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF
This is quantized version of princeton-nlp/Llama-3-8B-ProLong-512k-Base created using llama.cpp
Original Model Card
princeton_nlp/Llama-3-8B-ProLong-512k-Base
[Paper] [HF Collection] [Code]
ProLong (Princeton long-context language models) is a family of long-context models that are continued trained and supervised fine-tuned from Llama-3-8B, with a maximum context window of 512K tokens. Our main ProLong model is one of the best-performing long-context models at the 10B scale (evaluated by HELMET).
To train this strong long-context model, we conduct thorough ablations on the long-context pre-training data, SFT data, and numerous other design choices. We demonstrate our findings in our paper, How to Train Long-Context Language Models (Effectively).
Authors: Tianyu Gao*, Alexander Wettig*, Howard Yen, Danqi Chen (* equal contribution)
Contact: {tianyug, awettig}@princeton.edu
The ProLong Models
- princeton_nlp/Llama-3-8B-ProLong-64k-Base
- princeton_nlp/Llama-3-8B-ProLong-64k-Instruct
- princeton_nlp/Llama-3-8B-ProLong-512k-Base ← you are here!
- ⭐ princeton_nlp/Llama-3-8B-ProLong-512k-Instruct
Model card
Here are some quick facts about our main ProLong model: princeton-nlp/Llama-3-8B-ProLong-512k-Instruct.
- Base model: meta-llama/Meta-Llama-3-8B-Instruct
- Long-context continued training: 20B tokens on 64K training data (princeton-nlp/prolong-data-64K), and 20B tokens on 512K training data (princeton-nlp/prolong-data-512K)
- Supervised fine-tuning (SFT): UltraChat
- Maximum context window: 512K tokens
ProLong performance on HELMET averaged over 32K, 64K, and 128K lengths. All models are instruct models.
ProLong training recipe.
Citation
@article{gao2024prolong,
title={Enabling Large Language Models to Generate Text with Citations},
author={Gao, Tianyu and Wettig, Alexander and Yen, Howard and Chen, Danqi},
year={2024},
}
- Downloads last month
- 119
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Model tree for QuantFactory/Llama-3-8B-ProLong-512k-Base-GGUF
Base model
meta-llama/Meta-Llama-3-8B-Instruct