Instructions to use QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF", dtype="auto") - llama-cpp-python
How to use QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF", filename="Llama3.1-8B-PRM-Deepseek-Data.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/Llama3.1-8B-PRM-Deepseek-Data-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/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-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/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-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/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-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/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF with Ollama:
ollama run hf.co/QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-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/Llama3.1-8B-PRM-Deepseek-Data-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/Llama3.1-8B-PRM-Deepseek-Data-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/Llama3.1-8B-PRM-Deepseek-Data-GGUF to start chatting
- Pi new
How to use QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Llama3.1-8B-PRM-Deepseek-Data-GGUF-Q4_K_M
List all available models
lemonade list
QuantFactory/Llama3.1-8B-PRM-Deepseek-Data-GGUF
This is quantized version of RLHFlow/Llama3.1-8B-PRM-Deepseek-Data created using llama.cpp
Original Model Card
This is a process-supervised reward (PRM) trained on Mistral-generated data from the project RLHFlow/RLHF-Reward-Modeling
The model is trained from meta-llama/Llama-3.1-8B-Instruct on RLHFlow/Deepseek-PRM-Data for 1 epochs. We use a global batch size of 32 and a learning rate of 2e-6, where we pack the samples and split them into chunks of 8192 token. See more training details at https://github.com/RLHFlow/Online-RLHF/blob/main/math/llama-3.1-prm.yaml .
BoN evaluation result for Mistral generator:
| Model | Method | GSM8K | MATH |
|---|---|---|---|
| Mistral-7B | Pass@1 | 77.9 | 28.4 |
| Mistral-7B | Majority Voting@1024 | 84.2 | 36.8 |
| Mistral-7B | Mistral-ORM@1024 | 90.1 | 43.6 |
| Mistral-7B | Mistral-PRM@1024 | 92.4 | 46.3 |
Scaling the inference sampling to N=1024 for Deepseek generator:
| Model | Method | GSM8K | MATH |
|---|---|---|---|
| Deepseek-7B | Pass@1 | 83.9 | 38.4 |
| Deepseek-7B | Majority Voting@1024 | 89.7 | 57.4 |
| Deepseek-7B | Deepseek-ORM@1024 | 93.4 | 52.4 |
| Deepseek-7B | Deepseek-PRM@1024 | 93.0 | 58.1 |
| Deepseek-7B | Mistral-ORM@1024 (OOD) | 90.3 | 54.9 |
| Deepseek-7B | Mistral-PRM@1024 (OOD) | 91.9 | 56.9 |
Visualization
Usage
See https://github.com/RLHFlow/RLHF-Reward-Modeling/tree/main/math-rm for detailed examples.
Citation
The automatic annotation was proposed in the Math-shepherd paper:
@inproceedings{wang2024math,
title={Math-shepherd: Verify and reinforce llms step-by-step without human annotations},
author={Wang, Peiyi and Li, Lei and Shao, Zhihong and Xu, Runxin and Dai, Damai and Li, Yifei and Chen, Deli and Wu, Yu and Sui, Zhifang},
booktitle={Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
pages={9426--9439},
year={2024}
}
If you find the training recipe useful, please consider cite it as follows.
@misc{xiong2024rlhflowmath,
author={Wei Xiong and Hanning Zhang and Nan Jiang and Tong Zhang},
title = {An Implementation of Generative PRM},
year = {2024},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/RLHFlow/RLHF-Reward-Modeling}}
}
- Downloads last month
- 3,378
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
