Instructions to use ArpitSinghGautam/Llama3-8B-RAMP-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ArpitSinghGautam/Llama3-8B-RAMP-4bit with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ArpitSinghGautam/Llama3-8B-RAMP-4bit", filename="llama-3-8b-ramp-SCALED-mixed.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use ArpitSinghGautam/Llama3-8B-RAMP-4bit with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ArpitSinghGautam/Llama3-8B-RAMP-4bit # Run inference directly in the terminal: llama-cli -hf ArpitSinghGautam/Llama3-8B-RAMP-4bit
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf ArpitSinghGautam/Llama3-8B-RAMP-4bit # Run inference directly in the terminal: llama-cli -hf ArpitSinghGautam/Llama3-8B-RAMP-4bit
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 ArpitSinghGautam/Llama3-8B-RAMP-4bit # Run inference directly in the terminal: ./llama-cli -hf ArpitSinghGautam/Llama3-8B-RAMP-4bit
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 ArpitSinghGautam/Llama3-8B-RAMP-4bit # Run inference directly in the terminal: ./build/bin/llama-cli -hf ArpitSinghGautam/Llama3-8B-RAMP-4bit
Use Docker
docker model run hf.co/ArpitSinghGautam/Llama3-8B-RAMP-4bit
- LM Studio
- Jan
- vLLM
How to use ArpitSinghGautam/Llama3-8B-RAMP-4bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ArpitSinghGautam/Llama3-8B-RAMP-4bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ArpitSinghGautam/Llama3-8B-RAMP-4bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ArpitSinghGautam/Llama3-8B-RAMP-4bit
- Ollama
How to use ArpitSinghGautam/Llama3-8B-RAMP-4bit with Ollama:
ollama run hf.co/ArpitSinghGautam/Llama3-8B-RAMP-4bit
- Unsloth Studio new
How to use ArpitSinghGautam/Llama3-8B-RAMP-4bit 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 ArpitSinghGautam/Llama3-8B-RAMP-4bit 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 ArpitSinghGautam/Llama3-8B-RAMP-4bit to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ArpitSinghGautam/Llama3-8B-RAMP-4bit to start chatting
- Docker Model Runner
How to use ArpitSinghGautam/Llama3-8B-RAMP-4bit with Docker Model Runner:
docker model run hf.co/ArpitSinghGautam/Llama3-8B-RAMP-4bit
- Lemonade
How to use ArpitSinghGautam/Llama3-8B-RAMP-4bit with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ArpitSinghGautam/Llama3-8B-RAMP-4bit
Run and chat with the model
lemonade run user.Llama3-8B-RAMP-4bit-{{QUANT_TAG}}List all available models
lemonade list
docker model run hf.co/ArpitSinghGautam/Llama3-8B-RAMP-4bitLlama3-8B-RAMP-4bit
This repository contains a 4-bit quantized Llama 3 8B checkpoint produced with RAMP (Reinforcement Adaptive Mixed Precision Quantization).
Paper
RAMP was introduced in:
RAMP: Reinforcement Adaptive Mixed Precision Quantization for Efficient On Device LLM Inference
Model Summary
This model is a compressed Llama 3 8B variant intended for efficient inference with reduced memory usage.
What is RAMP?
RAMP is a reinforcement learning based mixed-precision quantization method that learns per-layer bit-width assignments under a global budget. It also introduces Scale Folding, a preconditioning step designed to make sub-4-bit quantization more stable.
Intended Use
This model is intended for:
- efficient local inference
- edge and on-device deployment
- research on quantization and mixed-precision inference
Limitations
- This is a quantized model and may show quality degradation compared to the original FP16 model.
- Performance depends on the inference backend, calibration setup, and prompt type.
- The model may still produce incorrect, biased, or unsafe outputs.
Citation
If you use this model or the RAMP method in your work, please cite:
@misc{gautam2026ramp,
title={RAMP: Reinforcement Adaptive Mixed Precision Quantization for Efficient On Device LLM Inference},
author={Gautam, Arpit Singh and Jha, Saurabh},
year={2026},
eprint={2603.17891},
archivePrefix={arXiv},
primaryClass={cs.AI}
}
- Downloads last month
- -
We're not able to determine the quantization variants.
Model tree for ArpitSinghGautam/Llama3-8B-RAMP-4bit
Base model
meta-llama/Meta-Llama-3-8B
# Gated model: Login with a HF token with gated access permission hf auth login