Update README.md
Browse files
README.md
CHANGED
|
@@ -1,74 +1,309 @@
|
|
| 1 |
-
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
language:
|
| 4 |
-
- en
|
| 5 |
-
pipeline_tag: text2text-generation
|
| 6 |
-
tags:
|
| 7 |
-
- 文本
|
| 8 |
-
metrics:
|
| 9 |
-
- accuracy
|
| 10 |
-
library_name: adapter-transformers
|
| 11 |
-
---
|
| 12 |
-
# Model Card for SG0.1.pth
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
### Model Description
|
| 17 |
|
| 18 |
-
This model, named SG0.1.pth, is a multimodal transformer designed to handle a variety of tasks including vision and audio processing. It is built on top of the adapter-transformers and transformers libraries and is intended to be a versatile base model for both direct use and fine-tuning.
|
| 19 |
|
| 20 |
-
**Developed by:** Independent researcher
|
| 21 |
-
**Funded by :** Self-funded
|
| 22 |
-
**Shared by :** Independent researcher
|
| 23 |
-
**Model type:** Multimodal
|
| 24 |
-
**Language(s) (NLP):** English zh
|
| 25 |
-
**License:** Apache-2.0
|
| 26 |
-
**Finetuned from model :** None
|
| 27 |
|
| 28 |
-
|
| 29 |
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
| 34 |
-
## Uses
|
| 35 |
|
| 36 |
-
|
| 37 |
|
| 38 |
-
|
| 39 |
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
-
### Out-of-Scope Use
|
| 45 |
|
| 46 |
-
The `SG0.1.pth` model is not designed for tasks that require highly specialized knowledge or domain-specific expertise beyond its current capabilities. It may not perform well on tasks that require fine-grained recognition or highly specialized audio processing.
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
| 51 |
|
| 52 |
-
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
- **Limitations:** The model may not perform well on tasks that require fine-grained recognition or highly specialized audio processing.
|
| 57 |
|
| 58 |
-
## How to Get Started with the Model
|
| 59 |
|
| 60 |
-
Use the code below to get started with the `SG0.1.pth` model.
|
| 61 |
|
| 62 |
-
```python
|
| 63 |
-
import torch
|
| 64 |
|
| 65 |
-
|
| 66 |
-
model = torch.load('path/to/SG1.0.pth')
|
| 67 |
-
model.eval()
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
|
|
|
| 71 |
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Model Card for SG0.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
<!-- Provide a quick summary of what the model is/does. [Optional] -->
|
| 4 |
+
{
|
| 5 |
+
"license": "apache-2.0",
|
| 6 |
+
"language": ["en"],
|
| 7 |
+
"metrics": ["accuracy", "bertscore"],
|
| 8 |
+
"library_name": ["adapter-transformers", "transformers"],
|
| 9 |
+
"model_name": "AutoModel",
|
| 10 |
+
"model_type": "multimodal-transformer",
|
| 11 |
+
"tags": ["multimodal", "transformer"],
|
| 12 |
+
"datasets": ["dataset1", "dataset2"],
|
| 13 |
+
"finetuned_from": "pretrained-model",
|
| 14 |
+
"config": {
|
| 15 |
+
"hidden_size": 768,
|
| 16 |
+
"num_attention_heads": 12,
|
| 17 |
+
"num_hidden_layers": 12,
|
| 18 |
+
"intermediate_size": 2048,
|
| 19 |
+
"hidden_dropout_prob": 0.1,
|
| 20 |
+
"attention_probs_dropout_prob": 0.1,
|
| 21 |
+
"image_size": 224,
|
| 22 |
+
"image_channels": 3,
|
| 23 |
+
"patch_size": 16,
|
| 24 |
+
"max_position_embeddings": 512,
|
| 25 |
+
"vocab_size": 30522,
|
| 26 |
+
"type_vocab_size": 2,
|
| 27 |
+
"audio_sample_rate": 16000,
|
| 28 |
+
"audio_frame_size": 1024,
|
| 29 |
+
"audio_hop_size": 512,
|
| 30 |
+
"enable_vqa": True,
|
| 31 |
+
"enable_caption": True,
|
| 32 |
+
"enable_retrieval": True,
|
| 33 |
+
"enable_asr": True,
|
| 34 |
+
"enable_realtime_asr": True,
|
| 35 |
+
"batch_size": 32,
|
| 36 |
+
"learning_rate": 0.0001,
|
| 37 |
+
"weight_decay": 0.01,
|
| 38 |
+
"warmup_steps": 10000,
|
| 39 |
+
"max_steps": 100000
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
|
|
|
|
| 43 |
|
|
|
|
| 44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
|
| 46 |
+
# Table of Contents
|
| 47 |
|
| 48 |
+
- [Model Card for SG0.1](#model-card-for--model_id-)
|
| 49 |
+
- [Table of Contents](#table-of-contents)
|
| 50 |
+
- [Table of Contents](#table-of-contents-1)
|
| 51 |
+
- [Model Details](#model-details)
|
| 52 |
+
- [Model Description](#model-description)
|
| 53 |
+
- [Uses](#uses)
|
| 54 |
+
- [Direct Use](#direct-use)
|
| 55 |
+
- [Downstream Use [Optional]](#downstream-use-optional)
|
| 56 |
+
- [Out-of-Scope Use](#out-of-scope-use)
|
| 57 |
+
- [Bias, Risks, and Limitations](#bias-risks-and-limitations)
|
| 58 |
+
- [Recommendations](#recommendations)
|
| 59 |
+
- [Training Details](#training-details)
|
| 60 |
+
- [Training Data](#training-data)
|
| 61 |
+
- [Training Procedure](#training-procedure)
|
| 62 |
+
- [Preprocessing](#preprocessing)
|
| 63 |
+
- [Speeds, Sizes, Times](#speeds-sizes-times)
|
| 64 |
+
- [Evaluation](#evaluation)
|
| 65 |
+
- [Testing Data, Factors & Metrics](#testing-data-factors--metrics)
|
| 66 |
+
- [Testing Data](#testing-data)
|
| 67 |
+
- [Factors](#factors)
|
| 68 |
+
- [Metrics](#metrics)
|
| 69 |
+
- [Results](#results)
|
| 70 |
+
- [Model Examination](#model-examination)
|
| 71 |
+
- [Environmental Impact](#environmental-impact)
|
| 72 |
+
- [Technical Specifications [optional]](#technical-specifications-optional)
|
| 73 |
+
- [Model Architecture and Objective](#model-architecture-and-objective)
|
| 74 |
+
- [Compute Infrastructure](#compute-infrastructure)
|
| 75 |
+
- [Hardware](#hardware)
|
| 76 |
+
- [Software](#software)
|
| 77 |
+
- [Citation](#citation)
|
| 78 |
+
- [Glossary [optional]](#glossary-optional)
|
| 79 |
+
- [More Information [optional]](#more-information-optional)
|
| 80 |
+
- [Model Card Authors [optional]](#model-card-authors-optional)
|
| 81 |
+
- [Model Card Contact](#model-card-contact)
|
| 82 |
+
- [How to Get Started with the Model](#how-to-get-started-with-the-model)
|
| 83 |
|
|
|
|
| 84 |
|
| 85 |
+
# Model Details
|
| 86 |
|
| 87 |
+
## Model Description
|
| 88 |
|
| 89 |
+
<!-- Provide a longer summary of what this model is/does. -->
|
| 90 |
+
{
|
| 91 |
+
"license": "apache-2.0",
|
| 92 |
+
"language": ["en"],
|
| 93 |
+
"metrics": ["accuracy", "bertscore"],
|
| 94 |
+
"library_name": ["adapter-transformers", "transformers"],
|
| 95 |
+
"model_name": "AutoModel",
|
| 96 |
+
"model_type": "multimodal-transformer",
|
| 97 |
+
"tags": ["multimodal", "transformer"],
|
| 98 |
+
"datasets": ["dataset1", "dataset2"],
|
| 99 |
+
"finetuned_from": "pretrained-model",
|
| 100 |
+
"config": {
|
| 101 |
+
"hidden_size": 768,
|
| 102 |
+
"num_attention_heads": 12,
|
| 103 |
+
"num_hidden_layers": 12,
|
| 104 |
+
"intermediate_size": 2048,
|
| 105 |
+
"hidden_dropout_prob": 0.1,
|
| 106 |
+
"attention_probs_dropout_prob": 0.1,
|
| 107 |
+
"image_size": 224,
|
| 108 |
+
"image_channels": 3,
|
| 109 |
+
"patch_size": 16,
|
| 110 |
+
"max_position_embeddings": 512,
|
| 111 |
+
"vocab_size": 30522,
|
| 112 |
+
"type_vocab_size": 2,
|
| 113 |
+
"audio_sample_rate": 16000,
|
| 114 |
+
"audio_frame_size": 1024,
|
| 115 |
+
"audio_hop_size": 512,
|
| 116 |
+
"enable_vqa": True,
|
| 117 |
+
"enable_caption": True,
|
| 118 |
+
"enable_retrieval": True,
|
| 119 |
+
"enable_asr": True,
|
| 120 |
+
"enable_realtime_asr": True,
|
| 121 |
+
"batch_size": 32,
|
| 122 |
+
"learning_rate": 0.0001,
|
| 123 |
+
"weight_decay": 0.01,
|
| 124 |
+
"warmup_steps": 10000,
|
| 125 |
+
"max_steps": 100000
|
| 126 |
+
}
|
| 127 |
+
}
|
| 128 |
|
| 129 |
+
- **Developed by:** More information needed
|
| 130 |
+
- **Shared by [Optional]:** More information needed
|
| 131 |
+
- **Model type:** Language model
|
| 132 |
+
- **Language(s) (NLP):** en, zh
|
| 133 |
+
- **License:** apache-2.0
|
| 134 |
+
- **Parent Model:** More information needed
|
| 135 |
+
- **Resources for more information:** More information needed
|
| 136 |
|
|
|
|
| 137 |
|
|
|
|
| 138 |
|
| 139 |
+
# Uses
|
| 140 |
|
| 141 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 142 |
|
| 143 |
+
## Direct Use
|
| 144 |
|
| 145 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 146 |
+
<!-- If the user enters content, print that. If not, but they enter a task in the list, use that. If neither, say "more info needed." -->
|
|
|
|
| 147 |
|
|
|
|
| 148 |
|
|
|
|
| 149 |
|
|
|
|
|
|
|
| 150 |
|
| 151 |
+
## Downstream Use [Optional]
|
|
|
|
|
|
|
| 152 |
|
| 153 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 154 |
+
<!-- If the user enters content, print that. If not, but they enter a task in the list, use that. If neither, say "more info needed." -->
|
| 155 |
+
|
| 156 |
|
| 157 |
+
|
| 158 |
+
|
| 159 |
+
## Out-of-Scope Use
|
| 160 |
+
|
| 161 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 162 |
+
<!-- If the user enters content, print that. If not, but they enter a task in the list, use that. If neither, say "more info needed." -->
|
| 163 |
+
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
|
| 167 |
+
# Bias, Risks, and Limitations
|
| 168 |
+
|
| 169 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 170 |
+
|
| 171 |
+
Significant research has explored bias and fairness issues with language models (see, e.g., [Sheng et al. (2021)](https://aclanthology.org/2021.acl-long.330.pdf) and [Bender et al. (2021)](https://dl.acm.org/doi/pdf/10.1145/3442188.3445922)). Predictions generated by the model may include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups.
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
## Recommendations
|
| 175 |
+
|
| 176 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
# Training Details
|
| 183 |
+
|
| 184 |
+
## Training Data
|
| 185 |
+
|
| 186 |
+
<!-- This should link to a Data 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. -->
|
| 187 |
+
|
| 188 |
+
More information on training data needed
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
## Training Procedure
|
| 192 |
+
|
| 193 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 194 |
+
|
| 195 |
+
### Preprocessing
|
| 196 |
+
|
| 197 |
+
More information needed
|
| 198 |
+
|
| 199 |
+
### Speeds, Sizes, Times
|
| 200 |
+
|
| 201 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 202 |
+
|
| 203 |
+
More information needed
|
| 204 |
+
|
| 205 |
+
# Evaluation
|
| 206 |
+
|
| 207 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 208 |
+
|
| 209 |
+
## Testing Data, Factors & Metrics
|
| 210 |
+
|
| 211 |
+
### Testing Data
|
| 212 |
+
|
| 213 |
+
<!-- This should link to a Data Card if possible. -->
|
| 214 |
+
|
| 215 |
+
More information needed
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
### Factors
|
| 219 |
+
|
| 220 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 221 |
+
|
| 222 |
+
More information needed
|
| 223 |
+
|
| 224 |
+
### Metrics
|
| 225 |
+
|
| 226 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 227 |
+
|
| 228 |
+
More information needed
|
| 229 |
+
|
| 230 |
+
## Results
|
| 231 |
+
|
| 232 |
+
More information needed
|
| 233 |
+
|
| 234 |
+
# Model Examination
|
| 235 |
+
|
| 236 |
+
More information needed
|
| 237 |
+
|
| 238 |
+
# Environmental Impact
|
| 239 |
+
|
| 240 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 241 |
+
|
| 242 |
+
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).
|
| 243 |
+
|
| 244 |
+
- **Hardware Type:** More information needed
|
| 245 |
+
- **Hours used:** More information needed
|
| 246 |
+
- **Cloud Provider:** More information needed
|
| 247 |
+
- **Compute Region:** More information needed
|
| 248 |
+
- **Carbon Emitted:** More information needed
|
| 249 |
+
|
| 250 |
+
# Technical Specifications [optional]
|
| 251 |
+
|
| 252 |
+
## Model Architecture and Objective
|
| 253 |
+
|
| 254 |
+
More information needed
|
| 255 |
+
|
| 256 |
+
## Compute Infrastructure
|
| 257 |
+
|
| 258 |
+
More information needed
|
| 259 |
+
|
| 260 |
+
### Hardware
|
| 261 |
+
|
| 262 |
+
More information needed
|
| 263 |
+
|
| 264 |
+
### Software
|
| 265 |
+
|
| 266 |
+
More information needed
|
| 267 |
+
|
| 268 |
+
# Citation
|
| 269 |
+
|
| 270 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 271 |
+
|
| 272 |
+
**BibTeX:**
|
| 273 |
+
|
| 274 |
+
More information needed
|
| 275 |
+
|
| 276 |
+
**APA:**
|
| 277 |
+
|
| 278 |
+
More information needed
|
| 279 |
+
|
| 280 |
+
# Glossary [optional]
|
| 281 |
+
|
| 282 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 283 |
+
|
| 284 |
+
More information needed
|
| 285 |
+
|
| 286 |
+
# More Information [optional]
|
| 287 |
+
|
| 288 |
+
More information needed
|
| 289 |
+
|
| 290 |
+
# Model Card Authors [optional]
|
| 291 |
+
|
| 292 |
+
<!-- This section provides another layer of transparency and accountability. Whose views is this model card representing? How many voices were included in its construction? Etc. -->
|
| 293 |
+
|
| 294 |
+
zero
|
| 295 |
+
|
| 296 |
+
# Model Card Contact
|
| 297 |
+
|
| 298 |
+
More information needed
|
| 299 |
+
|
| 300 |
+
# How to Get Started with the Model
|
| 301 |
+
|
| 302 |
+
Use the code below to get started with the model.
|
| 303 |
+
|
| 304 |
+
<details>
|
| 305 |
+
<summary> Click to expand </summary>
|
| 306 |
+
|
| 307 |
+
More information needed
|
| 308 |
+
|
| 309 |
+
</details>
|