Instructions to use failspy/llama-3-70B-Instruct-abliterated-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use failspy/llama-3-70B-Instruct-abliterated-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("failspy/llama-3-70B-Instruct-abliterated-GGUF", dtype="auto") - llama-cpp-python
How to use failspy/llama-3-70B-Instruct-abliterated-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="failspy/llama-3-70B-Instruct-abliterated-GGUF", filename="llama-3-70B-Instruct-abliterated-fp16-00001-of-00017.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 failspy/llama-3-70B-Instruct-abliterated-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf failspy/llama-3-70B-Instruct-abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf failspy/llama-3-70B-Instruct-abliterated-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 failspy/llama-3-70B-Instruct-abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf failspy/llama-3-70B-Instruct-abliterated-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 failspy/llama-3-70B-Instruct-abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf failspy/llama-3-70B-Instruct-abliterated-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 failspy/llama-3-70B-Instruct-abliterated-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf failspy/llama-3-70B-Instruct-abliterated-GGUF:Q4_K_M
Use Docker
docker model run hf.co/failspy/llama-3-70B-Instruct-abliterated-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use failspy/llama-3-70B-Instruct-abliterated-GGUF with Ollama:
ollama run hf.co/failspy/llama-3-70B-Instruct-abliterated-GGUF:Q4_K_M
- Unsloth Studio
How to use failspy/llama-3-70B-Instruct-abliterated-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 failspy/llama-3-70B-Instruct-abliterated-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 failspy/llama-3-70B-Instruct-abliterated-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for failspy/llama-3-70B-Instruct-abliterated-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use failspy/llama-3-70B-Instruct-abliterated-GGUF with Docker Model Runner:
docker model run hf.co/failspy/llama-3-70B-Instruct-abliterated-GGUF:Q4_K_M
- Lemonade
How to use failspy/llama-3-70B-Instruct-abliterated-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull failspy/llama-3-70B-Instruct-abliterated-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.llama-3-70B-Instruct-abliterated-GGUF-Q4_K_M
List all available models
lemonade list
Llama-3-70B-Instruct-abliterated Model Card
This is meta-llama/Llama-3-70B-Instruct with orthogonalized bfloat16 safetensor weights, generated with the methodology that was described in the preview paper/blog post: 'Refusal in LLMs is mediated by a single direction' which I encourage you to read to understand more.
TL;DR: this model has had certain weights manipulated to "inhibit" the model's ability to express refusal. It is not in anyway guaranteed that it won't refuse you, understand your request, it may still lecture you about ethics/safety, etc. It is tuned in all other respects the same as the original 70B instruct model was, just with the strongest refusal direction orthogonalized out.
GGUF quants
Uploaded quants:
fp16 (in main) - good for converting to other platforms or getting the quantization you actually want, not recommended but obviously highest quality
q8_0 (in own branch) - if you've got the spare capacity, might as well?
q6_0 (in own branch) - this will probably be the best balance in terms of quality/performance
q4 (in main) - recommended for ~48GB VRAM setups
q3_k_m (in main) - decent quality, would prefer q4 or q3_k_s
q3_k_s (in main) - perfect fit for ~32GB VRAM setups
q2 (in main) - surprisingly decent quality
For the people who like tinkering or looking to save bandwidth
In the repo, I've included refusal_dir.pth
If you have Llama-3-70B-Instruct model downloaded already, you can use the ortho cookbook to apply it to your downloaded model, which will make it the same as what you'd download from here.
Quirkiness awareness notice
This model may come with interesting quirks, as I obviously haven't extensively tested it, and the methodology being so new. I encourage you to play with the model, and post any quirks you notice in the community tab, as that'll help us further understand what this orthogonalization has in the way of side effects. The code I used to generate it (and my published 'Kappa-3' model which is just Phi-3 with the same methodology applied) is available in a Python notebook in this repo. Specifically, the ortho_cookbook.ipynb.
If you manage to develop further improvements, please share! This is really the most primitive way to use ablation, but there are other possibilities that I believe are as-yet unexplored.
- Downloads last month
- 375
ollama run hf.co/failspy/llama-3-70B-Instruct-abliterated-GGUF: