Martin Tomov
commited on
Commit
•
007bc54
1
Parent(s):
3bb618d
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: h2oai/h2o-danube-1.8b-chat
|
3 |
+
datasets:
|
4 |
+
- HuggingFaceH4/ultrafeedback_binarized
|
5 |
+
- Intel/orca_dpo_pairs
|
6 |
+
- argilla/distilabel-math-preference-dpo
|
7 |
+
- Open-Orca/OpenOrca
|
8 |
+
- OpenAssistant/oasst2
|
9 |
+
- HuggingFaceH4/ultrachat_200k
|
10 |
+
- meta-math/MetaMathQA
|
11 |
+
language:
|
12 |
+
- en
|
13 |
+
library_name: transformers
|
14 |
+
license: apache-2.0
|
15 |
+
pipeline_tag: text-generation
|
16 |
+
tags:
|
17 |
+
- gpt
|
18 |
+
- llm
|
19 |
+
- large language model
|
20 |
+
- h2o-llmstudio
|
21 |
+
- llama-cpp
|
22 |
+
- gguf-my-repo
|
23 |
+
thumbnail: https://h2o.ai/etc.clientlibs/h2o/clientlibs/clientlib-site/resources/images/favicon.ico
|
24 |
+
widget:
|
25 |
+
- messages:
|
26 |
+
- role: user
|
27 |
+
content: Why is drinking water so healthy?
|
28 |
+
---
|
29 |
+
|
30 |
+
# martintmv/h2o-danube-1.8b-chat-Q8_0-GGUF
|
31 |
+
This model was converted to GGUF format from [`h2oai/h2o-danube-1.8b-chat`](https://huggingface.co/h2oai/h2o-danube-1.8b-chat) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
32 |
+
Refer to the [original model card](https://huggingface.co/h2oai/h2o-danube-1.8b-chat) for more details on the model.
|
33 |
+
|
34 |
+
## Use with llama.cpp
|
35 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
36 |
+
|
37 |
+
```bash
|
38 |
+
brew install llama.cpp
|
39 |
+
|
40 |
+
```
|
41 |
+
Invoke the llama.cpp server or the CLI.
|
42 |
+
|
43 |
+
### CLI:
|
44 |
+
```bash
|
45 |
+
llama-cli --hf-repo martintmv/h2o-danube-1.8b-chat-Q8_0-GGUF --hf-file h2o-danube-1.8b-chat-q8_0.gguf -p "The meaning to life and the universe is"
|
46 |
+
```
|
47 |
+
|
48 |
+
### Server:
|
49 |
+
```bash
|
50 |
+
llama-server --hf-repo martintmv/h2o-danube-1.8b-chat-Q8_0-GGUF --hf-file h2o-danube-1.8b-chat-q8_0.gguf -c 2048
|
51 |
+
```
|
52 |
+
|
53 |
+
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.
|
54 |
+
|
55 |
+
Step 1: Clone llama.cpp from GitHub.
|
56 |
+
```
|
57 |
+
git clone https://github.com/ggerganov/llama.cpp
|
58 |
+
```
|
59 |
+
|
60 |
+
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).
|
61 |
+
```
|
62 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
63 |
+
```
|
64 |
+
|
65 |
+
Step 3: Run inference through the main binary.
|
66 |
+
```
|
67 |
+
./llama-cli --hf-repo martintmv/h2o-danube-1.8b-chat-Q8_0-GGUF --hf-file h2o-danube-1.8b-chat-q8_0.gguf -p "The meaning to life and the universe is"
|
68 |
+
```
|
69 |
+
or
|
70 |
+
```
|
71 |
+
./llama-server --hf-repo martintmv/h2o-danube-1.8b-chat-Q8_0-GGUF --hf-file h2o-danube-1.8b-chat-q8_0.gguf -c 2048
|
72 |
+
```
|