Instructions to use sriyaflows/gprmax_8 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 sriyaflows/gprmax_8 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 sriyaflows/gprmax_8 # Run inference directly in the terminal: llama cli -hf sriyaflows/gprmax_8
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sriyaflows/gprmax_8 # Run inference directly in the terminal: llama cli -hf sriyaflows/gprmax_8
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 sriyaflows/gprmax_8 # Run inference directly in the terminal: ./build/bin/llama cli -hf sriyaflows/gprmax_8
Use Docker
docker model run hf.co/sriyaflows/gprmax_8
- Llama new
- LM Studio
- Jan
- Ollama
How to use sriyaflows/gprmax_8 with Ollama:
ollama run hf.co/sriyaflows/gprmax_8
- Unsloth Desktop
- Pi
How to use sriyaflows/gprmax_8 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sriyaflows/gprmax_8
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "sriyaflows/gprmax_8" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use sriyaflows/gprmax_8 with Docker Model Runner:
docker model run hf.co/sriyaflows/gprmax_8
- Lemonade
How to use sriyaflows/gprmax_8 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sriyaflows/gprmax_8
Run and chat with the model
lemonade run user.gprmax_8-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use sriyaflows/gprmax_8 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sriyaflows/gprmax_8
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:9931/v1 hermes config set model.default sriyaflows/gprmax_8
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use sriyaflows/gprmax_8 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sriyaflows/gprmax_8
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:9931/v1 \ --custom-model-id "sriyaflows/gprmax_8" \ --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"
File size: 3,037 Bytes
92b7f9b da8aa19 232250d 3370b20 047454f 65f401a f2ccd30 232250d f2ccd30 232250d f2ccd30 232250d 92b7f9b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | ---
license: apache-2.0
datasets:
- IraGia/gprMax_Train
metrics:
- accuracy
base_model:
- unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit
---
Fine-Tuned
```markdown
---
language: en
license: llama2
base_model: Meta-Llama-3.1-8B-Instruct-bnb-4bit
datasets:
- gprmax_train
tags:
- fine-tuned
- gguf
- unsloth
- 4-bit
---
# Meta-Llama-3.1-8B-Instruct-bnb-4bit Fine-Tuned on gprmax_train (GGUF Format)
This repository contains the GGUF format of the fine-tuned `Meta-Llama-3.1-8B-Instruct-bnb-4bit` model, optimized for the `gprmax_train` dataset. The model was fine-tuned using the `unsloth` library for memory and time efficiency and has been converted to GGUF format for compatibility with popular inference frameworks like `llama.cpp`.
## Model Details
- **Base Model**: `Meta-Llama-3.1-8B-Instruct-bnb-4bit`
- **Fine-Tuning Dataset**: `gprmax_train`
- **Fine-Tuning Framework**: `unsloth`
- **Quantization**: 4-bit (bnb)
- **GGUF Conversion**: The model has been converted to GGUF format for efficient inference.
## Download the Model
You can download the GGUF model file from the "Files and versions" section of this repository or use the following command:
```bash
huggingface-cli download sriyaflows/gprmax_8 --include "*.gguf"
```
## Usage with `llama.cpp`
To run the model using `llama.cpp`, follow these steps:
### 1. Install `llama.cpp`
Clone and build `llama.cpp`:
```bash
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
make
```
### 2. Download the GGUF Model
Download the GGUF model file from this repository:
```bash
wget https://huggingface.co/sriyaflows/gprmax_8/resolve/main/gprmax_8.gguf
```
### 3. Run Inference
Use the `main` executable from `llama.cpp` to run inference:
```bash
./main -m gprmax_8.gguf -p "Your input text here" -n 512
```
### Example
```bash
./main -m gprmax_8.gguf -p "What is the output for this input?" -n 512
```
## Usage with Python
You can also use the GGUF model with Python libraries like `llama-cpp-python`:
### 1. Install `llama-cpp-python`
```bash
pip install llama-cpp-python
```
### 2. Load and Run the Model
```python
from llama_cpp import Llama
# Load the GGUF model
llm = Llama(model_path="gprmax_8.gguf")
# Generate text
output = llm("Your input text here", max_tokens=512)
print(output["choices"][0]["text"])
```
## Fine-Tuning Details
The model was fine-tuned on the `gprmax_train` dataset using the `unsloth` library, which optimized memory usage and training time. The fine-tuning process leveraged an L4 GPU with 32GB of RAM and 8 vCPUs.
## License
This model is licensed under the same terms as the base `Meta-Llama-3.1-8B-Instruct-bnb-4bit` model. Refer to the [Hugging Face model card](https://huggingface.co/Meta-Llama-3.1-8B-Instruct-bnb-4bit) for details.
## Acknowledgments
- Thanks to Hugging Face for the `transformers` library.
- Thanks to the `unsloth` team for their memory-efficient fine-tuning tools.
- Thanks to the creators of the `gprmax_train` dataset.
- Thanks to `ggerganov` for `llama.cpp` and the GGUF format.
``` |