Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: GainEnergy/OGAI-8x7b
|
3 |
+
datasets:
|
4 |
+
- GainEnergy/ogai-8x7B
|
5 |
+
- GainEnergy/oilandgas-engineering-dataset
|
6 |
+
- GainEnergy/ogdataset
|
7 |
+
- GainEnergy/upstrimacentral
|
8 |
+
library_name: transformers
|
9 |
+
license: mit
|
10 |
+
tags:
|
11 |
+
- oil-gas
|
12 |
+
- drilling-engineering
|
13 |
+
- mixtral-8x7b
|
14 |
+
- lora
|
15 |
+
- fine-tuned
|
16 |
+
- energy-ai
|
17 |
+
- retrieval-augmented-generation
|
18 |
+
- llama-cpp
|
19 |
+
- gguf-my-repo
|
20 |
+
model-index:
|
21 |
+
- name: OGAI-8x7B
|
22 |
+
results:
|
23 |
+
- task:
|
24 |
+
type: text-generation
|
25 |
+
name: Drilling Engineering AI
|
26 |
+
dataset:
|
27 |
+
name: GainEnergy Oil & Gas Corpus
|
28 |
+
type: custom
|
29 |
+
metrics:
|
30 |
+
- type: accuracy
|
31 |
+
value: 94.8
|
32 |
+
name: Drilling Calculations Accuracy
|
33 |
+
- type: precision
|
34 |
+
value: 91.2
|
35 |
+
name: Engineering Document Retrieval Precision
|
36 |
+
- type: contextual-coherence
|
37 |
+
value: High
|
38 |
+
name: Context Retention
|
39 |
+
---
|
40 |
+
|
41 |
+
# tommytracx/OGAI-8x7b-Q4_K_M-GGUF
|
42 |
+
This model was converted to GGUF format from [`GainEnergy/OGAI-8x7b`](https://huggingface.co/GainEnergy/OGAI-8x7b) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
43 |
+
Refer to the [original model card](https://huggingface.co/GainEnergy/OGAI-8x7b) for more details on the model.
|
44 |
+
|
45 |
+
## Use with llama.cpp
|
46 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
47 |
+
|
48 |
+
```bash
|
49 |
+
brew install llama.cpp
|
50 |
+
|
51 |
+
```
|
52 |
+
Invoke the llama.cpp server or the CLI.
|
53 |
+
|
54 |
+
### CLI:
|
55 |
+
```bash
|
56 |
+
llama-cli --hf-repo tommytracx/OGAI-8x7b-Q4_K_M-GGUF --hf-file ogai-8x7b-q4_k_m.gguf -p "The meaning to life and the universe is"
|
57 |
+
```
|
58 |
+
|
59 |
+
### Server:
|
60 |
+
```bash
|
61 |
+
llama-server --hf-repo tommytracx/OGAI-8x7b-Q4_K_M-GGUF --hf-file ogai-8x7b-q4_k_m.gguf -c 2048
|
62 |
+
```
|
63 |
+
|
64 |
+
Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
|
65 |
+
|
66 |
+
Step 1: Clone llama.cpp from GitHub.
|
67 |
+
```
|
68 |
+
git clone https://github.com/ggerganov/llama.cpp
|
69 |
+
```
|
70 |
+
|
71 |
+
Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
|
72 |
+
```
|
73 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
74 |
+
```
|
75 |
+
|
76 |
+
Step 3: Run inference through the main binary.
|
77 |
+
```
|
78 |
+
./llama-cli --hf-repo tommytracx/OGAI-8x7b-Q4_K_M-GGUF --hf-file ogai-8x7b-q4_k_m.gguf -p "The meaning to life and the universe is"
|
79 |
+
```
|
80 |
+
or
|
81 |
+
```
|
82 |
+
./llama-server --hf-repo tommytracx/OGAI-8x7b-Q4_K_M-GGUF --hf-file ogai-8x7b-q4_k_m.gguf -c 2048
|
83 |
+
```
|