Spaces:
Sleeping
Sleeping
laurentiubp
commited on
Commit
•
d15a5e9
1
Parent(s):
2acdf97
Update app.py
Browse files
app.py
CHANGED
@@ -8,22 +8,28 @@ import torch
|
|
8 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
9 |
|
10 |
|
11 |
-
MAX_INPUT_TOKEN_LENGTH =
|
12 |
|
13 |
|
14 |
DESCRIPTION = """\
|
15 |
# CataLlama-v0.1 Chat
|
16 |
This Space demonstrates model [CataLlama-v0.1-Instruct-DPO](https://huggingface.co/catallama/CataLlama-v0.1-Instruct-DPO).
|
17 |
|
18 |
-
CataLlama is a fine-tune
|
19 |
-
|
|
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
26 |
|
|
|
|
|
27 |
"""
|
28 |
|
29 |
if not torch.cuda.is_available():
|
|
|
8 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
9 |
|
10 |
|
11 |
+
MAX_INPUT_TOKEN_LENGTH = 8192
|
12 |
|
13 |
|
14 |
DESCRIPTION = """\
|
15 |
# CataLlama-v0.1 Chat
|
16 |
This Space demonstrates model [CataLlama-v0.1-Instruct-DPO](https://huggingface.co/catallama/CataLlama-v0.1-Instruct-DPO).
|
17 |
|
18 |
+
CataLlama is a fine-tune of Llama-3-8B to enhance it's proficiency on the Catalan Language.
|
19 |
+
|
20 |
+
The model is capable of performing the following tasks in Catalan:
|
21 |
|
22 |
+
- *Information extraction (suitable for RAG)*
|
23 |
+
- *Named Entity Recognition (NER)*
|
24 |
+
- *Translation from English to Catalan and Catalan to English*
|
25 |
+
- *Summarization - both short form and long form*
|
26 |
+
- *Chat*
|
27 |
+
- *Sentiment analysis*
|
28 |
+
- *Open question answering*
|
29 |
+
"""
|
30 |
|
31 |
+
LICENSE = """\
|
32 |
+
As a derivate work of [Meta-Llama-3-8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B) by Meta, this demo is governed by the original [llama-3 license](https://llama.meta.com/llama3/license)
|
33 |
"""
|
34 |
|
35 |
if not torch.cuda.is_available():
|