Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: openrail
|
3 |
+
inference:
|
4 |
+
parameters:
|
5 |
+
num_beams: 3
|
6 |
+
num_beam_groups: 3
|
7 |
+
num_return_sequences: 1
|
8 |
+
repetition_penalty: 3
|
9 |
+
diversity_penalty: 3.01
|
10 |
+
no_repeat_ngram_size: 2
|
11 |
+
temperature: 0.8
|
12 |
+
max_length: 64
|
13 |
+
widget:
|
14 |
+
- text: 'paraphraser: Learn to build generative AI applications with an expert AWS
|
15 |
+
instructor with the 2-day Developing Generative AI Applications on AWS course.'
|
16 |
+
example_title: AWS course
|
17 |
+
- text: 'paraphraser: In healthcare, Generative AI can help generate synthetic medical
|
18 |
+
data to train machine learning models, develop new drug candidates, and design
|
19 |
+
clinical trials.'
|
20 |
+
example_title: Generative AI
|
21 |
+
- text: 'paraphraser: By leveraging prior model training through transfer learning,
|
22 |
+
fine-tuning can reduce the amount of expensive computing power and labeled data
|
23 |
+
needed to obtain large models tailored to niche use cases and business needs.'
|
24 |
+
example_title: Fine Tuning
|
25 |
+
tags:
|
26 |
+
- llama-cpp
|
27 |
+
- gguf-my-repo
|
28 |
+
base_model: Ateeqq/Text-Rewriter-Paraphraser
|
29 |
+
---
|
30 |
+
|
31 |
+
# sizrox/Text-Rewriter-Paraphraser-Q8_0-GGUF
|
32 |
+
This model was converted to GGUF format from [`Ateeqq/Text-Rewriter-Paraphraser`](https://huggingface.co/Ateeqq/Text-Rewriter-Paraphraser) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
33 |
+
Refer to the [original model card](https://huggingface.co/Ateeqq/Text-Rewriter-Paraphraser) for more details on the model.
|
34 |
+
|
35 |
+
## Use with llama.cpp
|
36 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
37 |
+
|
38 |
+
```bash
|
39 |
+
brew install llama.cpp
|
40 |
+
|
41 |
+
```
|
42 |
+
Invoke the llama.cpp server or the CLI.
|
43 |
+
|
44 |
+
### CLI:
|
45 |
+
```bash
|
46 |
+
llama-cli --hf-repo sizrox/Text-Rewriter-Paraphraser-Q8_0-GGUF --hf-file text-rewriter-paraphraser-q8_0.gguf -p "The meaning to life and the universe is"
|
47 |
+
```
|
48 |
+
|
49 |
+
### Server:
|
50 |
+
```bash
|
51 |
+
llama-server --hf-repo sizrox/Text-Rewriter-Paraphraser-Q8_0-GGUF --hf-file text-rewriter-paraphraser-q8_0.gguf -c 2048
|
52 |
+
```
|
53 |
+
|
54 |
+
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.
|
55 |
+
|
56 |
+
Step 1: Clone llama.cpp from GitHub.
|
57 |
+
```
|
58 |
+
git clone https://github.com/ggerganov/llama.cpp
|
59 |
+
```
|
60 |
+
|
61 |
+
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).
|
62 |
+
```
|
63 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
64 |
+
```
|
65 |
+
|
66 |
+
Step 3: Run inference through the main binary.
|
67 |
+
```
|
68 |
+
./llama-cli --hf-repo sizrox/Text-Rewriter-Paraphraser-Q8_0-GGUF --hf-file text-rewriter-paraphraser-q8_0.gguf -p "The meaning to life and the universe is"
|
69 |
+
```
|
70 |
+
or
|
71 |
+
```
|
72 |
+
./llama-server --hf-repo sizrox/Text-Rewriter-Paraphraser-Q8_0-GGUF --hf-file text-rewriter-paraphraser-q8_0.gguf -c 2048
|
73 |
+
```
|