Instructions to use krgl/Llama-Primus-Reasoning_8bit-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use krgl/Llama-Primus-Reasoning_8bit-gguf with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("krgl/Llama-Primus-Reasoning_8bit-gguf", dtype="auto") - llama-cpp-python
How to use krgl/Llama-Primus-Reasoning_8bit-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="krgl/Llama-Primus-Reasoning_8bit-gguf", filename="Llama-Primus-Reasoning-8Bit.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 krgl/Llama-Primus-Reasoning_8bit-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf krgl/Llama-Primus-Reasoning_8bit-gguf # Run inference directly in the terminal: llama-cli -hf krgl/Llama-Primus-Reasoning_8bit-gguf
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf krgl/Llama-Primus-Reasoning_8bit-gguf # Run inference directly in the terminal: llama-cli -hf krgl/Llama-Primus-Reasoning_8bit-gguf
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 krgl/Llama-Primus-Reasoning_8bit-gguf # Run inference directly in the terminal: ./llama-cli -hf krgl/Llama-Primus-Reasoning_8bit-gguf
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 krgl/Llama-Primus-Reasoning_8bit-gguf # Run inference directly in the terminal: ./build/bin/llama-cli -hf krgl/Llama-Primus-Reasoning_8bit-gguf
Use Docker
docker model run hf.co/krgl/Llama-Primus-Reasoning_8bit-gguf
- LM Studio
- Jan
- Ollama
How to use krgl/Llama-Primus-Reasoning_8bit-gguf with Ollama:
ollama run hf.co/krgl/Llama-Primus-Reasoning_8bit-gguf
- Unsloth Studio new
How to use krgl/Llama-Primus-Reasoning_8bit-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 krgl/Llama-Primus-Reasoning_8bit-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 krgl/Llama-Primus-Reasoning_8bit-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for krgl/Llama-Primus-Reasoning_8bit-gguf to start chatting
- Docker Model Runner
How to use krgl/Llama-Primus-Reasoning_8bit-gguf with Docker Model Runner:
docker model run hf.co/krgl/Llama-Primus-Reasoning_8bit-gguf
- Lemonade
How to use krgl/Llama-Primus-Reasoning_8bit-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull krgl/Llama-Primus-Reasoning_8bit-gguf
Run and chat with the model
lemonade run user.Llama-Primus-Reasoning_8bit-gguf-{{QUANT_TAG}}List all available models
lemonade list
Model Card for 8Bit GGUF version of TrendMicro-Llama-Primus-Reasoning-8bit-gguf
This model is a 8bit Quantized GGUF model of trendmicro-ailab/Llama-Primus-Reasoning For original model and documentation visit
https://huggingface.co/trendmicro-ailab/Llama-Primus-Reasoning
Primus: A Pioneering Collection of Open-Source Datasets for Cybersecurity LLM Training
TL;DR: Llama-Primus-Reasoning is a reasoning model distilled from the reasoning steps with reflection data generated by o1-preview on cybersecurity tasks (Primus-Reasoning), based on Llama-Primus-Merged. It demonstrates a 🚀10% improvement in security certification (CISSP).
🔥 For more details, please refer to the paper: [📄Paper].
License
This model is based on the MIT license, but you must also comply with the Llama 3.1 Community License Agreement.
- Downloads last month
- -
We're not able to determine the quantization variants.
Model tree for krgl/Llama-Primus-Reasoning_8bit-gguf
Base model
meta-llama/Llama-3.1-8B