Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
- fr
|
| 5 |
+
- ro
|
| 6 |
+
- de
|
| 7 |
+
- multilingual
|
| 8 |
+
widget:
|
| 9 |
+
- text: 'Translate to German: My name is Arthur'
|
| 10 |
+
example_title: Translation
|
| 11 |
+
- text: Please answer to the following question. Who is going to be the next Ballon
|
| 12 |
+
d'or?
|
| 13 |
+
example_title: Question Answering
|
| 14 |
+
- text: 'Q: Can Geoffrey Hinton have a conversation with George Washington? Give the
|
| 15 |
+
rationale before answering.'
|
| 16 |
+
example_title: Logical reasoning
|
| 17 |
+
- text: Please answer the following question. What is the boiling point of Nitrogen?
|
| 18 |
+
example_title: Scientific knowledge
|
| 19 |
+
- text: Answer the following yes/no question. Can you write a whole Haiku in a single
|
| 20 |
+
tweet?
|
| 21 |
+
example_title: Yes/no question
|
| 22 |
+
- text: Answer the following yes/no question by reasoning step-by-step. Can you write
|
| 23 |
+
a whole Haiku in a single tweet?
|
| 24 |
+
example_title: Reasoning task
|
| 25 |
+
- text: 'Q: ( False or not False or False ) is? A: Let''s think step by step'
|
| 26 |
+
example_title: Boolean Expressions
|
| 27 |
+
- text: The square root of x is the cube root of y. What is y to the power of 2, if
|
| 28 |
+
x = 4?
|
| 29 |
+
example_title: Math reasoning
|
| 30 |
+
- text: 'Premise: At my age you will probably have learnt one lesson. Hypothesis: It''s
|
| 31 |
+
not certain how many lessons you''ll learn by your thirties. Does the premise
|
| 32 |
+
entail the hypothesis?'
|
| 33 |
+
example_title: Premise and hypothesis
|
| 34 |
+
tags:
|
| 35 |
+
- text2text-generation
|
| 36 |
+
- llama-cpp
|
| 37 |
+
- gguf-my-repo
|
| 38 |
+
datasets:
|
| 39 |
+
- svakulenk0/qrecc
|
| 40 |
+
- taskmaster2
|
| 41 |
+
- djaym7/wiki_dialog
|
| 42 |
+
- deepmind/code_contests
|
| 43 |
+
- lambada
|
| 44 |
+
- gsm8k
|
| 45 |
+
- aqua_rat
|
| 46 |
+
- esnli
|
| 47 |
+
- quasc
|
| 48 |
+
- qed
|
| 49 |
+
license: apache-2.0
|
| 50 |
+
base_model: google/flan-t5-large
|
| 51 |
+
---
|
| 52 |
+
|
| 53 |
+
# Res-eng-AC/flan-t5-large-Q4_K_M-GGUF
|
| 54 |
+
This model was converted to GGUF format from [`google/flan-t5-large`](https://huggingface.co/google/flan-t5-large) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
|
| 55 |
+
Refer to the [original model card](https://huggingface.co/google/flan-t5-large) for more details on the model.
|
| 56 |
+
|
| 57 |
+
## Use with llama.cpp
|
| 58 |
+
Install llama.cpp through brew (works on Mac and Linux)
|
| 59 |
+
|
| 60 |
+
```bash
|
| 61 |
+
brew install llama.cpp
|
| 62 |
+
|
| 63 |
+
```
|
| 64 |
+
Invoke the llama.cpp server or the CLI.
|
| 65 |
+
|
| 66 |
+
### CLI:
|
| 67 |
+
```bash
|
| 68 |
+
llama-cli --hf-repo Res-eng-AC/flan-t5-large-Q4_K_M-GGUF --hf-file flan-t5-large-q4_k_m.gguf -p "The meaning to life and the universe is"
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
### Server:
|
| 72 |
+
```bash
|
| 73 |
+
llama-server --hf-repo Res-eng-AC/flan-t5-large-Q4_K_M-GGUF --hf-file flan-t5-large-q4_k_m.gguf -c 2048
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
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.
|
| 77 |
+
|
| 78 |
+
Step 1: Clone llama.cpp from GitHub.
|
| 79 |
+
```
|
| 80 |
+
git clone https://github.com/ggerganov/llama.cpp
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
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).
|
| 84 |
+
```
|
| 85 |
+
cd llama.cpp && LLAMA_CURL=1 make
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
Step 3: Run inference through the main binary.
|
| 89 |
+
```
|
| 90 |
+
./llama-cli --hf-repo Res-eng-AC/flan-t5-large-Q4_K_M-GGUF --hf-file flan-t5-large-q4_k_m.gguf -p "The meaning to life and the universe is"
|
| 91 |
+
```
|
| 92 |
+
or
|
| 93 |
+
```
|
| 94 |
+
./llama-server --hf-repo Res-eng-AC/flan-t5-large-Q4_K_M-GGUF --hf-file flan-t5-large-q4_k_m.gguf -c 2048
|
| 95 |
+
```
|