Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- llama-cpp
|
7 |
+
- gguf-my-repo
|
8 |
+
datasets:
|
9 |
+
- HuggingFaceTB/cosmopedia
|
10 |
+
inference:
|
11 |
+
parameters:
|
12 |
+
temperature: 0.6
|
13 |
+
top_p: 0.95
|
14 |
+
top_k: 50
|
15 |
+
repetition_penalty: 1.2
|
16 |
+
widget:
|
17 |
+
- text: Photosynthesis is
|
18 |
+
example_title: Textbook
|
19 |
+
group: Completion
|
20 |
+
- text: '<s> [INST] How to take care of plants? [/INST] '
|
21 |
+
example_title: Wikihow
|
22 |
+
group: Completion
|
23 |
+
- text: '<s> [INST] Generate a story about a flying cat [/INST] '
|
24 |
+
example_title: Story
|
25 |
+
group: Completion
|
26 |
+
---
|
27 |
+
|
28 |
+
# BasedBots/cosmo-1b-Q4_K_M-GGUF
|
29 |
+
This model was converted to GGUF format from [`HuggingFaceTB/cosmo-1b`](https://huggingface.co/HuggingFaceTB/cosmo-1b) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
30 |
+
Refer to the [original model card](https://huggingface.co/HuggingFaceTB/cosmo-1b) for more details on the model.
|
31 |
+
## Use with llama.cpp
|
32 |
+
|
33 |
+
Install llama.cpp through brew.
|
34 |
+
|
35 |
+
```bash
|
36 |
+
brew install ggerganov/ggerganov/llama.cpp
|
37 |
+
```
|
38 |
+
Invoke the llama.cpp server or the CLI.
|
39 |
+
|
40 |
+
CLI:
|
41 |
+
|
42 |
+
```bash
|
43 |
+
llama-cli --hf-repo BasedBots/cosmo-1b-Q4_K_M-GGUF --model cosmo-1b.Q4_K_M.gguf -p "The meaning to life and the universe is"
|
44 |
+
```
|
45 |
+
|
46 |
+
Server:
|
47 |
+
|
48 |
+
```bash
|
49 |
+
llama-server --hf-repo BasedBots/cosmo-1b-Q4_K_M-GGUF --model cosmo-1b.Q4_K_M.gguf -c 2048
|
50 |
+
```
|
51 |
+
|
52 |
+
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.
|
53 |
+
|
54 |
+
```
|
55 |
+
git clone https://github.com/ggerganov/llama.cpp && cd llama.cpp && make && ./main -m cosmo-1b.Q4_K_M.gguf -n 128
|
56 |
+
```
|