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:8080/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:8080/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:8080/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"
Update Readme.md
Browse files
README.md
CHANGED
|
@@ -1,7 +1,89 @@
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Below is a sample `README.md` file for your Hugging Face model repository, where the fine-tuned model has been uploaded in GGUF format. This file provides an overview of the model, its usage, and instructions for downloading and running it.
|
| 2 |
+
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
# Meta-Llama-3.1-8B-Instruct-bnb-4bit Fine-Tuned on gprmax_train (GGUF Format)
|
| 6 |
+
|
| 7 |
+
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`.
|
| 8 |
+
|
| 9 |
+
## Model Details
|
| 10 |
+
- **Base Model**: `Meta-Llama-3.1-8B-Instruct-bnb-4bit`
|
| 11 |
+
- **Fine-Tuning Dataset**: `gprmax_train`
|
| 12 |
+
- **Fine-Tuning Framework**: `unsloth`
|
| 13 |
+
- **Quantization**: 4-bit (bnb)
|
| 14 |
+
- **GGUF Conversion**: The model has been converted to GGUF format for efficient inference.
|
| 15 |
+
|
| 16 |
+
## Download the Model
|
| 17 |
+
You can download the GGUF model file from the "Files and versions" section of this repository or use the following command:
|
| 18 |
+
|
| 19 |
+
```bash
|
| 20 |
+
huggingface-cli download sriyaflows/gprmax_8 --include "*.gguf"
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
## Usage with `llama.cpp`
|
| 24 |
+
|
| 25 |
+
To run the model using `llama.cpp`, follow these steps:
|
| 26 |
+
|
| 27 |
+
### 1. Install `llama.cpp`
|
| 28 |
+
Clone and build `llama.cpp`:
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
git clone https://github.com/ggerganov/llama.cpp
|
| 32 |
+
cd llama.cpp
|
| 33 |
+
make
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
### 2. Download the GGUF Model
|
| 37 |
+
Download the GGUF model file from this repository:
|
| 38 |
+
|
| 39 |
+
```bash
|
| 40 |
+
wget https://huggingface.co/sriyaflows/gprmax_8/resolve/main/gprmax_8.gguf
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
### 3. Run Inference
|
| 44 |
+
Use the `main` executable from `llama.cpp` to run inference:
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
./main -m your-model-name.gguf -p "Your input text here" -n 512
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
### Example
|
| 51 |
+
```bash
|
| 52 |
+
./main -m your-model-name.gguf -p "What is the output for this input?" -n 512
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
## Usage with Python
|
| 56 |
+
You can also use the GGUF model with Python libraries like `llama-cpp-python`:
|
| 57 |
+
|
| 58 |
+
### 1. Install `llama-cpp-python`
|
| 59 |
+
```bash
|
| 60 |
+
pip install llama-cpp-python
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
### 2. Load and Run the Model
|
| 64 |
+
```python
|
| 65 |
+
from llama_cpp import Llama
|
| 66 |
+
|
| 67 |
+
# Load the GGUF model
|
| 68 |
+
llm = Llama(model_path="gprmax_8.gguf")
|
| 69 |
+
|
| 70 |
+
# Generate text
|
| 71 |
+
output = llm("Your input text here", max_tokens=512)
|
| 72 |
+
print(output["choices"][0]["text"])
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
## Fine-Tuning Details
|
| 76 |
+
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.
|
| 77 |
+
|
| 78 |
+
## License
|
| 79 |
+
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/unsloth/Meta-Llama-3.1-8B-Instruct) for details.
|
| 80 |
+
|
| 81 |
+
## Acknowledgments
|
| 82 |
+
- Thanks to Hugging Face for the `transformers` library.
|
| 83 |
+
- Thanks to the `unsloth` team for their memory-efficient fine-tuning tools.
|
| 84 |
+
- Thanks to the creators of the `gprmax_train` dataset.
|
| 85 |
+
- Thanks to `ggerganov` for `llama.cpp` and the GGUF format.
|
| 86 |
+
|
| 87 |
+
---
|
| 88 |
+
|
| 89 |
+
This `README.md` file is designed to provide clear instructions for downloading and using the GGUF model.
|