Instructions to use RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-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 RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-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 RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M
Use Docker
docker model run hf.co/RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- Ollama
How to use RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf with Ollama:
ollama run hf.co/RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M
- Unsloth Desktop
- Pi
How to use RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf with Docker Model Runner:
docker model run hf.co/RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M
- Lemonade
How to use RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M
Run and chat with the model
lemonade run user.RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-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 RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Configure OpenClaw
# Install OpenClaw:
npm install -g openclaw@latest# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
--auth-choice custom-api-key \
--custom-base-url http://127.0.0.1:8080/v1 \
--custom-model-id "RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf:" \
--custom-provider-id llama-cpp \
--custom-compatibility openai \
--custom-text-input \
--accept-risk \
--skip-healthRun OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Quantization made by Richard Erkhov.
reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5 - GGUF
- Model creator: https://huggingface.co/RyanYr/
- Original model: https://huggingface.co/RyanYr/reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5/
Original model description:
base_model: RyanYr/reflect_llama8B_llama-mstlrg-om2-80k_sft-t2_lr1e-6 library_name: transformers model_name: reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5 tags: - generated_from_trainer - trl - dpo licence: license
Model Card for reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5
This model is a fine-tuned version of RyanYr/reflect_llama8B_llama-mstlrg-om2-80k_sft-t2_lr1e-6. It has been trained using TRL.
Quick start
from transformers import pipeline
question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
generator = pipeline("text-generation", model="RyanYr/reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5", device="cuda")
output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
print(output["generated_text"])
Training procedure
This model was trained with DPO, a method introduced in Direct Preference Optimization: Your Language Model is Secretly a Reward Model.
Framework versions
- TRL: 0.12.0.dev0
- Transformers: 4.45.2
- Pytorch: 2.5.1
- Datasets: 3.1.0
- Tokenizers: 0.20.3
Citations
Cite DPO as:
@inproceedings{rafailov2023direct,
title = {{Direct Preference Optimization: Your Language Model is Secretly a Reward Model}},
author = {Rafael Rafailov and Archit Sharma and Eric Mitchell and Christopher D. Manning and Stefano Ermon and Chelsea Finn},
year = 2023,
booktitle = {Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023},
url = {http://papers.nips.cc/paper_files/paper/2023/hash/a85b405ed65c6477a4fe8302b5e06ce7-Abstract-Conference.html},
editor = {Alice Oh and Tristan Naumann and Amir Globerson and Kate Saenko and Moritz Hardt and Sergey Levine},
}
Cite TRL as:
@misc{vonwerra2022trl,
title = {{TRL: Transformer Reinforcement Learning}},
author = {Leandro von Werra and Younes Belkada and Lewis Tunstall and Edward Beeching and Tristan Thrush and Nathan Lambert and Shengyi Huang and Kashif Rasul and Quentin Gallouรฉdec},
year = 2020,
journal = {GitHub repository},
publisher = {GitHub},
howpublished = {\url{https://github.com/huggingface/trl}}
}
- Downloads last month
- 260
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp# Start a local OpenAI-compatible server: llama serve -hf RichardErkhov/RyanYr_-_reflect_llm8B_llmMstlrg-om2-80k-SftT2_MgSpsdpT02_b0.5-gguf: