Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: summarization
|
| 6 |
+
widget:
|
| 7 |
+
- text: 'Hugging Face: Revolutionizing Natural Language Processing Introduction In
|
| 8 |
+
the rapidly evolving field of Natural Language Processing (NLP), Hugging Face
|
| 9 |
+
has emerged as a prominent and innovative force. This article will explore the
|
| 10 |
+
story and significance of Hugging Face, a company that has made remarkable contributions
|
| 11 |
+
to NLP and AI as a whole. From its inception to its role in democratizing AI,
|
| 12 |
+
Hugging Face has left an indelible mark on the industry. The Birth of Hugging
|
| 13 |
+
Face Hugging Face was founded in 2016 by Clément Delangue, Julien Chaumond, and
|
| 14 |
+
Thomas Wolf. The name Hugging Face was chosen to reflect the company''s mission
|
| 15 |
+
of making AI models more accessible and friendly to humans, much like a comforting
|
| 16 |
+
hug. Initially, they began as a chatbot company but later shifted their focus
|
| 17 |
+
to NLP, driven by their belief in the transformative potential of this technology.
|
| 18 |
+
Transformative Innovations Hugging Face is best known for its open-source contributions,
|
| 19 |
+
particularly the Transformers library. This library has become the de facto standard
|
| 20 |
+
for NLP and enables researchers, developers, and organizations to easily access
|
| 21 |
+
and utilize state-of-the-art pre-trained language models, such as BERT, GPT-3,
|
| 22 |
+
and more. These models have countless applications, from chatbots and virtual
|
| 23 |
+
assistants to language translation and sentiment analysis. '
|
| 24 |
+
example_title: Summarization Example 1
|
| 25 |
+
tags:
|
| 26 |
+
- llama-cpp
|
| 27 |
+
- gguf-my-repo
|
| 28 |
+
base_model: Falconsai/text_summarization
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
# fernandoruiz/text_summarization-Q4_0-GGUF
|
| 32 |
+
This model was converted to GGUF format from [`Falconsai/text_summarization`](https://huggingface.co/Falconsai/text_summarization) 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/Falconsai/text_summarization) 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 fernandoruiz/text_summarization-Q4_0-GGUF --hf-file text_summarization-q4_0.gguf -p "The meaning to life and the universe is"
|
| 47 |
+
```
|
| 48 |
+
|
| 49 |
+
### Server:
|
| 50 |
+
```bash
|
| 51 |
+
llama-server --hf-repo fernandoruiz/text_summarization-Q4_0-GGUF --hf-file text_summarization-q4_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 fernandoruiz/text_summarization-Q4_0-GGUF --hf-file text_summarization-q4_0.gguf -p "The meaning to life and the universe is"
|
| 69 |
+
```
|
| 70 |
+
or
|
| 71 |
+
```
|
| 72 |
+
./llama-server --hf-repo fernandoruiz/text_summarization-Q4_0-GGUF --hf-file text_summarization-q4_0.gguf -c 2048
|
| 73 |
+
```
|