Update README.md
Browse files
README.md
CHANGED
@@ -1,199 +1,107 @@
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
-
tags:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
---
|
5 |
|
6 |
-
# Model Card for
|
7 |
-
|
8 |
-
<!-- Provide a quick summary of what the model is/does. -->
|
9 |
-
|
10 |
-
|
11 |
|
12 |
## Model Details
|
13 |
|
14 |
### Model Description
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
19 |
|
20 |
-
- **Developed by:**
|
21 |
-
- **
|
22 |
-
- **
|
23 |
-
- **
|
24 |
-
- **
|
25 |
-
- **License:** [More Information Needed]
|
26 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
27 |
|
28 |
### Model Sources [optional]
|
29 |
|
30 |
-
|
|
|
|
|
31 |
|
32 |
-
|
33 |
-
- **Paper [optional]:** [More Information Needed]
|
34 |
-
- **Demo [optional]:** [More Information Needed]
|
35 |
|
36 |
## Uses
|
37 |
|
38 |
-
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
39 |
-
|
40 |
### Direct Use
|
41 |
|
42 |
-
|
43 |
|
44 |
-
|
|
|
|
|
|
|
|
|
45 |
|
46 |
### Downstream Use [optional]
|
47 |
|
48 |
-
|
49 |
|
50 |
-
|
|
|
|
|
51 |
|
52 |
### Out-of-Scope Use
|
53 |
|
54 |
-
|
|
|
55 |
|
56 |
-
|
57 |
|
58 |
## Bias, Risks, and Limitations
|
59 |
|
60 |
-
|
61 |
-
|
62 |
-
[More Information Needed]
|
63 |
-
|
64 |
-
### Recommendations
|
65 |
-
|
66 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
67 |
-
|
68 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
69 |
-
|
70 |
-
## How to Get Started with the Model
|
71 |
-
|
72 |
-
Use the code below to get started with the model.
|
73 |
-
|
74 |
-
[More Information Needed]
|
75 |
-
|
76 |
-
## Training Details
|
77 |
-
|
78 |
-
### Training Data
|
79 |
-
|
80 |
-
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
81 |
-
|
82 |
-
[More Information Needed]
|
83 |
-
|
84 |
-
### Training Procedure
|
85 |
-
|
86 |
-
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
87 |
-
|
88 |
-
#### Preprocessing [optional]
|
89 |
-
|
90 |
-
[More Information Needed]
|
91 |
-
|
92 |
-
|
93 |
-
#### Training Hyperparameters
|
94 |
-
|
95 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
96 |
-
|
97 |
-
#### Speeds, Sizes, Times [optional]
|
98 |
-
|
99 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
100 |
-
|
101 |
-
[More Information Needed]
|
102 |
-
|
103 |
-
## Evaluation
|
104 |
-
|
105 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
106 |
-
|
107 |
-
### Testing Data, Factors & Metrics
|
108 |
-
|
109 |
-
#### Testing Data
|
110 |
-
|
111 |
-
<!-- This should link to a Dataset Card if possible. -->
|
112 |
-
|
113 |
-
[More Information Needed]
|
114 |
|
115 |
-
|
|
|
|
|
|
|
116 |
|
117 |
-
|
118 |
-
|
119 |
-
[More Information Needed]
|
120 |
-
|
121 |
-
#### Metrics
|
122 |
-
|
123 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
124 |
-
|
125 |
-
[More Information Needed]
|
126 |
-
|
127 |
-
### Results
|
128 |
-
|
129 |
-
[More Information Needed]
|
130 |
-
|
131 |
-
#### Summary
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
## Model Examination [optional]
|
136 |
-
|
137 |
-
<!-- Relevant interpretability work for the model goes here -->
|
138 |
-
|
139 |
-
[More Information Needed]
|
140 |
-
|
141 |
-
## Environmental Impact
|
142 |
-
|
143 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
144 |
-
|
145 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
146 |
-
|
147 |
-
- **Hardware Type:** [More Information Needed]
|
148 |
-
- **Hours used:** [More Information Needed]
|
149 |
-
- **Cloud Provider:** [More Information Needed]
|
150 |
-
- **Compute Region:** [More Information Needed]
|
151 |
-
- **Carbon Emitted:** [More Information Needed]
|
152 |
-
|
153 |
-
## Technical Specifications [optional]
|
154 |
-
|
155 |
-
### Model Architecture and Objective
|
156 |
-
|
157 |
-
[More Information Needed]
|
158 |
-
|
159 |
-
### Compute Infrastructure
|
160 |
-
|
161 |
-
[More Information Needed]
|
162 |
-
|
163 |
-
#### Hardware
|
164 |
-
|
165 |
-
[More Information Needed]
|
166 |
-
|
167 |
-
#### Software
|
168 |
-
|
169 |
-
[More Information Needed]
|
170 |
-
|
171 |
-
## Citation [optional]
|
172 |
-
|
173 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
174 |
-
|
175 |
-
**BibTeX:**
|
176 |
-
|
177 |
-
[More Information Needed]
|
178 |
-
|
179 |
-
**APA:**
|
180 |
-
|
181 |
-
[More Information Needed]
|
182 |
|
183 |
-
##
|
184 |
|
185 |
-
|
|
|
|
|
186 |
|
187 |
-
|
188 |
|
189 |
-
##
|
190 |
|
191 |
-
|
192 |
|
193 |
-
|
|
|
|
|
194 |
|
195 |
-
|
|
|
|
|
|
|
|
|
|
|
196 |
|
197 |
-
|
|
|
|
|
198 |
|
199 |
-
|
|
|
|
|
|
1 |
---
|
2 |
library_name: transformers
|
3 |
+
tags:
|
4 |
+
- Tibetan
|
5 |
+
- NLP
|
6 |
+
- low-resource
|
7 |
+
- LLM
|
8 |
+
- language-model
|
9 |
+
- multilingual
|
10 |
+
language:
|
11 |
+
- bo
|
12 |
+
base_model:
|
13 |
+
- buddhist-nlp/gemma2-mitra-base
|
14 |
---
|
15 |
|
16 |
+
# Model Card for Monlam Melong preview
|
|
|
|
|
|
|
|
|
17 |
|
18 |
## Model Details
|
19 |
|
20 |
### Model Description
|
21 |
|
22 |
+
Monlam Melong is a large language model (LLM)(Tibetan LLM) specifically designed to support and enhance Natural Language Processing (NLP) tasks for the Tibetan language, a traditionally low-resource language. The model can handle a range of NLP tasks, including machine translation, named entity recognition (NER), question answering, text generation, and sentence segmentation. It supports translation from over 200 languages into Tibetan and vice versa, making it one of the most comprehensive AI models for Tibetan language processing to date.
|
23 |
|
24 |
+
Monlam Melong was developed as part of Monlam AI's initiative to preserve and promote the Tibetan language and cultural heritage. By building and training a Tibetan-centric LLM, MonlamMelong addresses the technological gap that has historically excluded low-resource languages from mainstream AI development.
|
25 |
|
26 |
+
- **Developed by:** Monlam AI
|
27 |
+
- **Model type:** Large Language Model (LLM)
|
28 |
+
- **Language(s) (NLP):** Tibetan, with support for multilingual translation (200+ languages)
|
29 |
+
- **License:** Open-Source License (details to be added)
|
30 |
+
- **Finetuned from model [optional]:** Custom model architecture built on top of pre-trained models
|
|
|
|
|
31 |
|
32 |
### Model Sources [optional]
|
33 |
|
34 |
+
- **Repository:** [Link to model repository]
|
35 |
+
- **Paper [optional]:** [Link to any relevant research paper, if applicable]
|
36 |
+
- **Demo [optional]:** [Link to demo, if available]
|
37 |
|
38 |
+
---
|
|
|
|
|
39 |
|
40 |
## Uses
|
41 |
|
|
|
|
|
42 |
### Direct Use
|
43 |
|
44 |
+
MonlamMelong can be used directly to support a wide range of NLP tasks in the Tibetan language, including:
|
45 |
|
46 |
+
- **Translation:** Translation from Tibetan to 200+ languages and vice versa.
|
47 |
+
- **Text-to-Text Generation:** Writing letters, essays, or educational materials in Tibetan.
|
48 |
+
- **Content Creation:** Generation of Tibetan children's stories, educational content, and creative writing.
|
49 |
+
- **Information Extraction:** Named Entity Recognition (NER) for historical, cultural, and linguistic research.
|
50 |
+
- **Text Segmentation:** Sentence and paragraph segmentation for downstream NLP tasks.
|
51 |
|
52 |
### Downstream Use [optional]
|
53 |
|
54 |
+
MonlamMelong can be fine-tuned or adapted for specialized tasks such as:
|
55 |
|
56 |
+
- **Linguistic Analysis:** Tools for researchers in linguistics or anthropology studying the Tibetan language.
|
57 |
+
- **Education Apps:** Use in Tibetan language learning platforms and educational tools.
|
58 |
+
- **Digital Libraries:** Use in text search, retrieval, and analysis for Tibetan digital archives.
|
59 |
|
60 |
### Out-of-Scope Use
|
61 |
|
62 |
+
- **Misuse for Generating Misinformation:** Users should refrain from using MonlamMelong to generate false or misleading content.
|
63 |
+
- **Uncontrolled Autonomy:** The model should not be used in fully autonomous systems that make critical decisions without human oversight.
|
64 |
|
65 |
+
---
|
66 |
|
67 |
## Bias, Risks, and Limitations
|
68 |
|
69 |
+
MonlamMelong inherits biases from its training data, as NLP models are often influenced by the language and perspectives present in the datasets. Special attention should be paid to the following issues:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
+
- **Linguistic Bias:** Since MonlamMelong was primarily trained on Tibetan text, it may not perform as well on non-Tibetan NLP tasks.
|
72 |
+
- **Cultural Representation:** The model may reflect existing societal and cultural biases present in its training data, especially in sensitive or historical contexts.
|
73 |
+
- **Translation Accuracy:** While MonlamMelong supports translation from 200+ languages, errors may arise due to differences in sentence structure and idiomatic expressions between languages.
|
74 |
+
- **Data Limitations:** As a model for a low-resource language, the training data may not be as extensive as data available for high-resource languages like English or Mandarin.
|
75 |
|
76 |
+
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
|
78 |
+
## Recommendations
|
79 |
|
80 |
+
- **Human Oversight:** Users should review the model's outputs, especially in educational or historical contexts, where precision and cultural sensitivity are crucial.
|
81 |
+
- **Bias Audits:** Institutions using MonlamMelong for translation or information extraction should regularly audit for bias in its performance.
|
82 |
+
- **Fine-Tuning for Specialized Tasks:** For specific academic or educational applications, fine-tuning the model may improve task-specific performance.
|
83 |
|
84 |
+
---
|
85 |
|
86 |
+
## How to Get Started with the Model
|
87 |
|
88 |
+
To use Monlam Melong with the 🤗 Transformers library, you can load the model as follows:
|
89 |
|
90 |
+
```python
|
91 |
+
import torch
|
92 |
+
from transformers import pipeline
|
93 |
|
94 |
+
pipe = pipeline(
|
95 |
+
"text-generation",
|
96 |
+
model="TenzinGayche/Melong_preview",
|
97 |
+
model_kwargs={"torch_dtype": torch.bfloat16},
|
98 |
+
device="cuda", # replace with "mps" to run on a Mac device
|
99 |
+
)
|
100 |
|
101 |
+
messages = [
|
102 |
+
{"role": "user", "content": "Please translate the following text into Tibetan: Hi how are you ? Translation: "},
|
103 |
+
]
|
104 |
|
105 |
+
outputs = pipe(messages, max_new_tokens=256)
|
106 |
+
assistant_response = outputs[0]["generated_text"][-1]["content"].strip()
|
107 |
+
print(assistant_response)
|