Transformers
GGUF
conversational
munish0838 commited on
Commit
e5dd2ca
1 Parent(s): 5f0833a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +141 -0
README.md ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+
4
+ inference: false
5
+ library_name: transformers
6
+ language:
7
+ - en
8
+ - fr
9
+ - de
10
+ - es
11
+ - it
12
+ - pt
13
+ - ja
14
+ - ko
15
+ - zh
16
+ - ar
17
+ - el
18
+ - fa
19
+ - pl
20
+ - id
21
+ - cs
22
+ - he
23
+ - hi
24
+ - nl
25
+ - ro
26
+ - ru
27
+ - tr
28
+ - uk
29
+ - vi
30
+ license: cc-by-nc-4.0
31
+ extra_gated_prompt: "By submitting this form, you agree to the [License Agreement](https://cohere.com/c4ai-cc-by-nc-license) and acknowledge that the information you provide will be collected, used, and shared in accordance with Cohere’s [Privacy Policy]( https://cohere.com/privacy). You’ll receive email updates about C4AI and Cohere research, events, products and services. You can unsubscribe at any time."
32
+ extra_gated_fields:
33
+ Name: text
34
+ Affiliation: text
35
+ Country: country
36
+ I agree to use this model for non-commercial use ONLY: checkbox
37
+
38
+ ---
39
+
40
+ [![QuantFactory Banner](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeiuCm7c8lEwEJuRey9kiVZsRn2W-b4pWlu3-X534V3YmVuVc2ZL-NXg2RkzSOOS2JXGHutDuyyNAUtdJI65jGTo8jT9Y99tMi4H4MqL44Uc5QKG77B0d6-JfIkZHFaUA71-RtjyYZWVIhqsNZcx8-OMaA?key=xt3VSDoCbmTY7o-cwwOFwQ)](https://hf.co/QuantFactory)
41
+
42
+
43
+ # QuantFactory/aya-expanse-8b-GGUF
44
+ This is quantized version of [CohereForAI/aya-expanse-8b](https://huggingface.co/CohereForAI/aya-expanse-8b) created using llama.cpp
45
+
46
+ # Original Model Card
47
+
48
+
49
+ # Model Card for Aya Expanse 8B
50
+
51
+ <img src="aya-expanse-8B.png" width="650" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
52
+
53
+ Aya Expanse is an open-weight research release of a model with highly advanced multilingual capabilities. It focuses on pairing a highly performant pre-trained [Command family](https://huggingface.co/CohereForAI/c4ai-command-r-plus) of models with the result of a year’s dedicated research from [Cohere For AI](https://cohere.for.ai/), including [data arbitrage](https://arxiv.org/pdf/2408.14960), [multilingual preference training](https://arxiv.org/abs/2407.02552), [safety tuning](https://arxiv.org/abs/2406.18682), and [model merging](https://arxiv.org/abs/2410.10801). The result is a powerful multilingual large language model serving 23 languages.
54
+
55
+ We cover 23 languages: Arabic, Chinese (simplified & traditional), Czech, Dutch, English, French, German, Greek, Hebrew, Hebrew, Hindi, Indonesian, Italian, Japanese, Korean, Persian, Polish, Portuguese, Romanian, Russian, Spanish, Turkish, Ukrainian, and Vietnamese
56
+
57
+ This model card corresponds to the 8-billion version of the Aya Expanse model. We also released an 32-billion version which you can find [here](https://huggingface.co/CohereForAI/aya-expanse-32B).
58
+
59
+ - Developed by: [Cohere For AI](https://cohere.for.ai/)
60
+ - Point of Contact: Cohere For AI: [cohere.for.ai](https://cohere.for.ai/)
61
+ - License: [CC-BY-NC](https://cohere.com/c4ai-cc-by-nc-license), requires also adhering to [C4AI's Acceptable Use Policy](https://docs.cohere.com/docs/c4ai-acceptable-use-policy)
62
+ - Model: Aya Expanse 8B
63
+ - Model Size: 8 billion parameters
64
+
65
+ **Try Aya Expanse**
66
+
67
+ Before downloading the weights, you can try out Aya Expanse in our hosted [Hugging Face Space](https://huggingface.co/spaces/CohereForAI/aya_expanse).
68
+
69
+
70
+ ### Usage
71
+
72
+ Please install transformers from the source repository.
73
+
74
+ ```python
75
+ # pip install 'git+https://github.com/huggingface/transformers.git'
76
+ from transformers import AutoTokenizer, AutoModelForCausalLM
77
+
78
+ model_id = "CohereForAI/aya-expanse-8b"
79
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
80
+ model = AutoModelForCausalLM.from_pretrained(model_id)
81
+
82
+ # Format the message with the chat template
83
+ messages = [{"role": "user", "content": "Anneme onu ne kadar sevdiğimi anlatan bir mektup yaz"}]
84
+ input_ids = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
85
+ ## <BOS_TOKEN><|START_OF_TURN_TOKEN|><|USER_TOKEN|>Anneme onu ne kadar sevdiğimi anlatan bir mektup yaz<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>
86
+
87
+ gen_tokens = model.generate(
88
+ input_ids,
89
+ max_new_tokens=100,
90
+ do_sample=True,
91
+ temperature=0.3,
92
+ )
93
+
94
+ gen_text = tokenizer.decode(gen_tokens[0])
95
+ print(gen_text)
96
+ ```
97
+
98
+ ### Example Notebooks
99
+
100
+ **Fine-Tuning**:
101
+ - [This notebook](https://colab.research.google.com/drive/1ryPYXzqb7oIn2fchMLdCNSIH5KfyEtv4) showcases a detailed use of fine-tuning Aya Expanse on more languages.
102
+
103
+ **Example Use cases**:
104
+
105
+ The following notebooks contributed by *Cohere For AI Community* members show how Aya Expanse can be used for different use cases:
106
+
107
+ - [Mulitlingual Writing Assistant](https://colab.research.google.com/drive/1SRLWQ0HdYN_NbRMVVUHTDXb-LSMZWF60#scrollTo=qBK1H7WO9UHG)
108
+ - [AyaMCooking](https://colab.research.google.com/drive/1-cnn4LXYoZ4ARBpnsjQM3sU7egOL_fLB?usp=sharing#scrollTo=ukHwdlrgXSdI)
109
+ - [Multilingual Question-Answering System](https://colab.research.google.com/drive/1bbB8hzyzCJbfMVjsZPeh4yNEALJFGNQy?usp=sharing)
110
+
111
+
112
+ ## Model Details
113
+
114
+ **Input**: Models input text only.
115
+
116
+ **Output**: Models generate text only.
117
+
118
+ **Model Architecture**: Aya Expanse 8B is an auto-regressive language model that uses an optimized transformer architecture. Post-training includes supervised finetuning, preference training, and model merging.
119
+
120
+ **Languages covered**: The model is particularly optimized for multilinguality and supports the following languages: Arabic, Chinese (simplified & traditional), Czech, Dutch, English, French, German, Greek, Hebrew, Hindi, Indonesian, Italian, Japanese, Korean, Persian, Polish, Portuguese, Romanian, Russian, Spanish, Turkish, Ukrainian, and Vietnamese
121
+
122
+ **Context length**: 8K
123
+
124
+ ### Evaluation
125
+
126
+ <img src="winrates_marenahard.png" width="650" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
127
+ <img src="winrates_by_lang.png" width="650" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
128
+ <img src="winrates_step_by_step.png" width="650" style="margin-left:'auto' margin-right:'auto' display:'block'"/>
129
+
130
+ ### Model Card Contact
131
+
132
+ For errors or additional questions about details in this model card, contact info@for.ai.
133
+
134
+ ### Terms of Use
135
+
136
+ We hope that the release of this model will make community-based research efforts more accessible, by releasing the weights of a highly performant multilingual model to researchers all over the world. This model is governed by a [CC-BY-NC](https://cohere.com/c4ai-cc-by-nc-license) License with an acceptable use addendum, and also requires adhering to [C4AI's Acceptable Use Policy](https://docs.cohere.com/docs/c4ai-acceptable-use-policy).
137
+
138
+ ### Try the model today
139
+
140
+ You can try Aya Expanse in the Cohere [playground](https://dashboard.cohere.com/playground/chat) here. You can also use it in our dedicated Hugging Face Space [here](https://huggingface.co/spaces/CohereForAI/aya_expanse).
141
+