GGUF
conversational
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.
```