Update README.md
Browse files
README.md
CHANGED
|
@@ -7,35 +7,31 @@ base_model:
|
|
| 7 |
- mistralai/Pixtral-12B-2409
|
| 8 |
- mistral-community/pixtral-12b
|
| 9 |
---
|
| 10 |
-
# Model Card for
|
| 11 |
|
| 12 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 13 |
|
| 14 |
-
This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
|
| 15 |
|
| 16 |
## Model Details
|
| 17 |
|
| 18 |
### Model Description
|
| 19 |
|
| 20 |
<!-- Provide a longer summary of what this model is. -->
|
|
|
|
|
|
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
- **
|
| 25 |
-
- **
|
| 26 |
-
- **
|
| 27 |
-
- **Model type:** [More Information Needed]
|
| 28 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 29 |
-
- **License:** [More Information Needed]
|
| 30 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 31 |
|
| 32 |
### Model Sources [optional]
|
| 33 |
|
| 34 |
<!-- Provide the basic links for the model. -->
|
| 35 |
|
| 36 |
-
- **Repository:** [
|
| 37 |
-
- **
|
| 38 |
-
- **Demo [optional]:** [More Information Needed]
|
| 39 |
|
| 40 |
## Uses
|
| 41 |
|
|
@@ -44,160 +40,60 @@ This modelcard aims to be a base template for new models. It has been generated
|
|
| 44 |
### Direct Use
|
| 45 |
|
| 46 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
|
|
|
|
|
|
| 47 |
|
| 48 |
-
[More Information Needed]
|
| 49 |
-
|
| 50 |
-
### Downstream Use [optional]
|
| 51 |
-
|
| 52 |
-
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 53 |
-
|
| 54 |
-
[More Information Needed]
|
| 55 |
|
| 56 |
### Out-of-Scope Use
|
| 57 |
|
| 58 |
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 59 |
-
|
| 60 |
-
|
| 61 |
|
| 62 |
## Bias, Risks, and Limitations
|
| 63 |
|
| 64 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
|
|
|
|
|
|
| 65 |
|
| 66 |
-
[More Information Needed]
|
| 67 |
-
|
| 68 |
-
### Recommendations
|
| 69 |
-
|
| 70 |
-
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 71 |
-
|
| 72 |
-
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 73 |
|
| 74 |
## How to Get Started with the Model
|
| 75 |
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
[More Information Needed]
|
| 79 |
|
| 80 |
## Training Details
|
| 81 |
|
| 82 |
-
###
|
| 83 |
-
|
| 84 |
-
|
|
|
|
| 85 |
|
| 86 |
-
[More Information Needed]
|
| 87 |
|
| 88 |
### Training Procedure
|
| 89 |
|
| 90 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
|
|
|
| 91 |
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
[More Information Needed]
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
#### Training Hyperparameters
|
| 98 |
-
|
| 99 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 100 |
-
|
| 101 |
-
#### Speeds, Sizes, Times [optional]
|
| 102 |
-
|
| 103 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 104 |
-
|
| 105 |
-
[More Information Needed]
|
| 106 |
-
|
| 107 |
-
## Evaluation
|
| 108 |
-
|
| 109 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 110 |
-
|
| 111 |
-
### Testing Data, Factors & Metrics
|
| 112 |
-
|
| 113 |
-
#### Testing Data
|
| 114 |
-
|
| 115 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 116 |
-
|
| 117 |
-
[More Information Needed]
|
| 118 |
-
|
| 119 |
-
#### Factors
|
| 120 |
-
|
| 121 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 122 |
-
|
| 123 |
-
[More Information Needed]
|
| 124 |
-
|
| 125 |
-
#### Metrics
|
| 126 |
-
|
| 127 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 128 |
-
|
| 129 |
-
[More Information Needed]
|
| 130 |
-
|
| 131 |
-
### Results
|
| 132 |
-
|
| 133 |
-
[More Information Needed]
|
| 134 |
-
|
| 135 |
-
#### Summary
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
## Model Examination [optional]
|
| 140 |
-
|
| 141 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 142 |
-
|
| 143 |
-
[More Information Needed]
|
| 144 |
-
|
| 145 |
-
## Environmental Impact
|
| 146 |
-
|
| 147 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 148 |
-
|
| 149 |
-
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).
|
| 150 |
-
|
| 151 |
-
- **Hardware Type:** [More Information Needed]
|
| 152 |
-
- **Hours used:** [More Information Needed]
|
| 153 |
-
- **Cloud Provider:** [More Information Needed]
|
| 154 |
-
- **Compute Region:** [More Information Needed]
|
| 155 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 156 |
|
| 157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
|
| 159 |
-
|
| 160 |
|
| 161 |
-
[More Information Needed]
|
| 162 |
|
| 163 |
### Compute Infrastructure
|
| 164 |
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
#### Hardware
|
| 168 |
-
|
| 169 |
-
[More Information Needed]
|
| 170 |
-
|
| 171 |
-
#### Software
|
| 172 |
-
|
| 173 |
-
[More Information Needed]
|
| 174 |
-
|
| 175 |
-
## Citation [optional]
|
| 176 |
-
|
| 177 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 178 |
-
|
| 179 |
-
**BibTeX:**
|
| 180 |
-
|
| 181 |
-
[More Information Needed]
|
| 182 |
-
|
| 183 |
-
**APA:**
|
| 184 |
-
|
| 185 |
-
[More Information Needed]
|
| 186 |
-
|
| 187 |
-
## Glossary [optional]
|
| 188 |
-
|
| 189 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 190 |
-
|
| 191 |
-
[More Information Needed]
|
| 192 |
-
|
| 193 |
-
## More Information [optional]
|
| 194 |
-
|
| 195 |
-
[More Information Needed]
|
| 196 |
-
|
| 197 |
-
## Model Card Authors [optional]
|
| 198 |
-
|
| 199 |
-
[More Information Needed]
|
| 200 |
|
| 201 |
-
## Model Card
|
| 202 |
|
| 203 |
-
|
|
|
|
| 7 |
- mistralai/Pixtral-12B-2409
|
| 8 |
- mistral-community/pixtral-12b
|
| 9 |
---
|
| 10 |
+
# Model Card for Moshika Vision
|
| 11 |
|
| 12 |
<!-- Provide a quick summary of what the model is/does. -->
|
| 13 |
|
|
|
|
| 14 |
|
| 15 |
## Model Details
|
| 16 |
|
| 17 |
### Model Description
|
| 18 |
|
| 19 |
<!-- Provide a longer summary of what this model is. -->
|
| 20 |
+
MoshiVis is a perceptually augmented version of Moshi, giving it the ability to freely discuss images whilst maintaining its natural conversation style and low latency.
|
| 21 |
+
To achieve this, Moshi has been extended with a visual backbone and a cross-attention mechanism to infuse the visual information into the language model.
|
| 22 |
|
| 23 |
+
- **Developed by:** Kyutai
|
| 24 |
+
- **Model type:** Multimodal speech+vision+text foundation model
|
| 25 |
+
- **Language(s) (NLP):** English
|
| 26 |
+
- **License:** Apache License 2.0
|
| 27 |
+
- **Finetuned from model:** [Moshika](https://huggingface.co/kyutai/moshika-vis-pytorch-bf16) and [Pixtral](https://huggingface.co/mistral-community/pixtral-12b)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
### Model Sources [optional]
|
| 30 |
|
| 31 |
<!-- Provide the basic links for the model. -->
|
| 32 |
|
| 33 |
+
- **Repository:** [Github kyutai-labs/moshivis](https://github.com/kyutai-labs/moshivis) <-- TODO: Update / check link
|
| 34 |
+
- **Demo [optional]:** [moshi.chat](https://moshi.chat/)
|
|
|
|
| 35 |
|
| 36 |
## Uses
|
| 37 |
|
|
|
|
| 40 |
### Direct Use
|
| 41 |
|
| 42 |
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 43 |
+
Similar to Moshi itself, MoshiVis can be used as a conversational agent for casual conversations, basic facts and advice (e.g. recipes, trivia), roleplay, etc.
|
| 44 |
+
In addition, MoshiVis is able to recognize and discuss images in a natural way, whilst still allowing for low-latency interactions.
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
### Out-of-Scope Use
|
| 48 |
|
| 49 |
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 50 |
+
The model is not intended to be used to impersonate other people or any malicious use of any kind.
|
| 51 |
+
This model is for research only and we do not recommend it for providing advices or to perform any professionnal duty.
|
| 52 |
|
| 53 |
## Bias, Risks, and Limitations
|
| 54 |
|
| 55 |
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 56 |
+
MoshiVis has been designed to perceptually augment the original Moshi model with vision capabilities and is expected to inherit similar biases and limitations, see also [Moshika](https://huggingface.co/kyutai/moshika-vis-pytorch-bf16).
|
| 57 |
+
Our analysis with respect to how much MoshiVis diverges from the original model is still ongoing.
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
## How to Get Started with the Model
|
| 61 |
|
| 62 |
+
See the [README file](https://github.com/kyutai-labs/moshivis) for getting started. <-- TODO: Update / check link
|
|
|
|
|
|
|
| 63 |
|
| 64 |
## Training Details
|
| 65 |
|
| 66 |
+
### Model Architecture and Objective
|
| 67 |
+
Our goal was to design an efficient and effective adaptation mechanism that allows Moshi to discuss images whilst maintaining its previous conversational capabilities.
|
| 68 |
+
To achieve this, we train a cross-attention mechanism to insert image information from a pretrained and frozen vision backbone into the underlying language model, which is also kept frozen.
|
| 69 |
+
An additional gating mechanism ensures that the insertion of visual information does not impact the interaction with Moshi outside of discussions of images, allowing for a seamless back and forth between general and image-specific conversations.
|
| 70 |
|
|
|
|
| 71 |
|
| 72 |
### Training Procedure
|
| 73 |
|
| 74 |
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 75 |
+
Stay tuned for our technical report, in which we will describe the training procedure in detail!
|
| 76 |
|
| 77 |
+
### Training Data
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
|
| 79 |
+
<!-- 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. -->
|
| 80 |
+
For information on the training data used for the base models, see [Pixtral](https://mistral.ai/news/pixtral-12b/) and [Moshi](https://huggingface.co/kyutai/moshika-pytorch-bf16) respectively.
|
| 81 |
+
To train the cross-attention and gating mechanism that MoshiVis uses for processing images, we rely on a collection of publicly available datasets:
|
| 82 |
+
- [Pixelprose](https://arxiv.org/abs/2406.10328)
|
| 83 |
+
- [DOCCI](https://arxiv.org/abs/2404.19753)
|
| 84 |
+
- [TallyQA](https://arxiv.org/abs/1810.12440)
|
| 85 |
+
- [OCRVQA](https://ocr-vqa.github.io/)
|
| 86 |
+
- [RenderedText](https://huggingface.co/datasets/wendlerc/RenderedText)
|
| 87 |
+
- [DocVQA](https://arxiv.org/abs/2007.00398)
|
| 88 |
+
- [ChartQA](https://aclanthology.org/2022.findings-acl.177/)
|
| 89 |
|
| 90 |
+
We will share additional details soon, stay tuned!
|
| 91 |
|
|
|
|
| 92 |
|
| 93 |
### Compute Infrastructure
|
| 94 |
|
| 95 |
+
MoshiVis was designed as a relatively low-cost adaptation of Moshi and was trained on a single DGX node with 8 H100 GPUs provided by Scaleway.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
|
| 97 |
+
## Model Card Authors
|
| 98 |
|
| 99 |
+
Amélie Royer, Moritz Böhle
|