初始化项目,由ModelHub XC社区提供模型

Model: NastasiaM/mbert-loraxs-qa-vanilla
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-06-10 00:18:47 +08:00
commit d696db249d
795 changed files with 8285474 additions and 0 deletions

View File

@@ -0,0 +1,206 @@
---
base_model: bert-base-multilingual-cased
library_name: peft
tags:
- base_model:adapter:bert-base-multilingual-cased
- lora
- transformers
---
# Model Card for Model ID
<!-- Provide a quick summary of what the model is/does. -->
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->
- **Developed by:** [More Information Needed]
- **Funded by [optional]:** [More Information Needed]
- **Shared by [optional]:** [More Information Needed]
- **Model type:** [More Information Needed]
- **Language(s) (NLP):** [More Information Needed]
- **License:** [More Information Needed]
- **Finetuned from model [optional]:** [More Information Needed]
### Model Sources [optional]
<!-- Provide the basic links for the model. -->
- **Repository:** [More Information Needed]
- **Paper [optional]:** [More Information Needed]
- **Demo [optional]:** [More Information Needed]
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Direct Use
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
[More Information Needed]
### Downstream Use [optional]
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
[More Information Needed]
### Out-of-Scope Use
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
[More Information Needed]
## Bias, Risks, and Limitations
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
[More Information Needed]
### Recommendations
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
## How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
## Training Details
### Training Data
<!-- 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. -->
[More Information Needed]
### Training Procedure
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
#### Preprocessing [optional]
[More Information Needed]
#### Training Hyperparameters
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
#### Speeds, Sizes, Times [optional]
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
[More Information Needed]
## Evaluation
<!-- This section describes the evaluation protocols and provides the results. -->
### Testing Data, Factors & Metrics
#### Testing Data
<!-- This should link to a Dataset Card if possible. -->
[More Information Needed]
#### Factors
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
[More Information Needed]
#### Metrics
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
[More Information Needed]
### Results
[More Information Needed]
#### Summary
## Model Examination [optional]
<!-- Relevant interpretability work for the model goes here -->
[More Information Needed]
## Environmental Impact
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
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).
- **Hardware Type:** [More Information Needed]
- **Hours used:** [More Information Needed]
- **Cloud Provider:** [More Information Needed]
- **Compute Region:** [More Information Needed]
- **Carbon Emitted:** [More Information Needed]
## Technical Specifications [optional]
### Model Architecture and Objective
[More Information Needed]
### Compute Infrastructure
[More Information Needed]
#### Hardware
[More Information Needed]
#### Software
[More Information Needed]
## Citation [optional]
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
**BibTeX:**
[More Information Needed]
**APA:**
[More Information Needed]
## Glossary [optional]
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
[More Information Needed]
## More Information [optional]
[More Information Needed]
## Model Card Authors [optional]
[More Information Needed]
## Model Card Contact
[More Information Needed]
### Framework versions
- PEFT 0.19.1

View File

@@ -0,0 +1,47 @@
{
"alora_invocation_tokens": null,
"alpha_pattern": {},
"arrow_config": null,
"auto_mapping": null,
"base_model_name_or_path": "bert-base-multilingual-cased",
"bias": "none",
"corda_config": null,
"ensure_weight_tying": false,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": true,
"init_lora_weights": true,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 256,
"lora_bias": false,
"lora_dropout": 0.22980730880873645,
"lora_ga_config": null,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": [
"qa_outputs"
],
"peft_type": "LORA",
"peft_version": "0.19.1",
"qalora_group_size": 16,
"r": 128,
"rank_pattern": {},
"revision": null,
"target_modules": [
"dense",
"query",
"key",
"value"
],
"target_parameters": null,
"task_type": "QUESTION_ANS",
"trainable_token_indices": null,
"use_bdlora": null,
"use_dora": false,
"use_qalora": false,
"use_rslora": false
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d1dd4538387a1011b087a6549bd78ba941c898fbdad7a12dde3d1c0e899d2f6
size 89691896

View File

@@ -0,0 +1,34 @@
{
"add_cross_attention": false,
"architectures": [
"BertForQuestionAnswering"
],
"attention_probs_dropout_prob": 0.1,
"bos_token_id": null,
"classifier_dropout": null,
"directionality": "bidi",
"dtype": "float32",
"eos_token_id": null,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"initializer_range": 0.02,
"intermediate_size": 3072,
"is_decoder": false,
"layer_norm_eps": 1e-12,
"max_position_embeddings": 512,
"model_type": "bert",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pad_token_id": 0,
"pooler_fc_size": 768,
"pooler_num_attention_heads": 12,
"pooler_num_fc_layers": 3,
"pooler_size_per_head": 128,
"pooler_type": "first_token_transform",
"tie_word_embeddings": true,
"transformers_version": "5.9.0",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 119547
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8b1e81397cfcb3c6a3693e135685f422d97a6080586c30ae32f42ec1919878b0
size 709080872

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ebd3103403f73c0a986e0db9a6807b1495064773ece34ffe7fa58b80023551f0
size 9513163

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3971a189c708a01d02be1e50bcfa0a26c8e9be5a4eed52d3bfc52e525c73fb1d
size 14645

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6ad1c0b0f6f5ae272091e20987a68959df06e6abb6982b7a4d536f26b0c2c2f4
size 1383

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db70ea3cf431ec8f5ab2ab4e9ffea8e320af660143c3c6568fb55baa905a99be
size 1465

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,15 @@
{
"backend": "tokenizers",
"cls_token": "[CLS]",
"do_lower_case": false,
"is_local": false,
"local_files_only": false,
"mask_token": "[MASK]",
"model_max_length": 512,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "BertTokenizer",
"unk_token": "[UNK]"
}

View File

@@ -0,0 +1,75 @@
{
"best_global_step": 1268,
"best_metric": 70.42089105490078,
"best_model_checkpoint": "mbert-loraxs-qa-vanilla/run-3/checkpoint-1268",
"epoch": 2.0,
"eval_steps": 500,
"global_step": 1268,
"is_hyper_param_search": true,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 1.0,
"grad_norm": 25.72856330871582,
"learning_rate": 0.00036170225367171497,
"loss": 2.8233307558655363,
"step": 634
},
{
"epoch": 1.0,
"eval_exact_match": 50.32,
"eval_f1": 63.941961174475914,
"eval_loss": 1.6252752542495728,
"eval_runtime": 7.6169,
"eval_samples_per_second": 166.078,
"eval_steps_per_second": 10.503,
"step": 634
},
{
"epoch": 2.0,
"grad_norm": 27.754880905151367,
"learning_rate": 0.0002893846160722614,
"loss": 1.7085243971189865,
"step": 1268
},
{
"epoch": 2.0,
"eval_exact_match": 55.28,
"eval_f1": 70.42089105490078,
"eval_loss": 1.4321246147155762,
"eval_runtime": 7.709,
"eval_samples_per_second": 164.095,
"eval_steps_per_second": 10.378,
"step": 1268
}
],
"logging_steps": 500,
"max_steps": 3804,
"num_input_tokens_seen": 0,
"num_train_epochs": 6,
"save_steps": 500,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": false
},
"attributes": {}
}
},
"total_flos": 5023145924278272.0,
"train_batch_size": 16,
"trial_name": null,
"trial_params": {
"learning_rate": 0.0003904468036323811,
"lora_alpha": 256,
"lora_dropout": 0.22980730880873645,
"lora_r": 128,
"num_train_epochs": 6,
"weight_decay": 0.06293800360990247
}
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e1d95695f1ddc0799b301d7f4ac64dcd9cd865b77a1731b3b4bfbf9cc4240cda
size 5201

View File

@@ -0,0 +1,34 @@
{
"add_cross_attention": false,
"architectures": [
"BertForQuestionAnswering"
],
"attention_probs_dropout_prob": 0.1,
"bos_token_id": null,
"classifier_dropout": null,
"directionality": "bidi",
"dtype": "float32",
"eos_token_id": null,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"initializer_range": 0.02,
"intermediate_size": 3072,
"is_decoder": false,
"layer_norm_eps": 1e-12,
"max_position_embeddings": 512,
"model_type": "bert",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pad_token_id": 0,
"pooler_fc_size": 768,
"pooler_num_attention_heads": 12,
"pooler_num_fc_layers": 3,
"pooler_size_per_head": 128,
"pooler_type": "first_token_transform",
"tie_word_embeddings": true,
"transformers_version": "5.9.0",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 119547
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6619e1ca4ae50db7ded3577a45c1501215c6dc5bd9bf53438d8f2a94b9b2dc9d
size 709080872

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c58808cb6ed3056db6170ff833594006f38a934ee4553e9a98cb2702074e1175
size 1418284811

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a9fa0ce0401512fa9896892571f419761e8535885785b10a28df3e18c4bcd070
size 14645

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e0a0c7f6c8509d672722a939f4d396dea735fa475e6d89775c3d859d2450df1
size 1383

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d1d0a962ced2c06199bbd6c5c425db43a120b9239e51cd13c71321d98fa2b3c
size 1465

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,15 @@
{
"backend": "tokenizers",
"cls_token": "[CLS]",
"do_lower_case": false,
"is_local": false,
"local_files_only": false,
"mask_token": "[MASK]",
"model_max_length": 512,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "BertTokenizer",
"unk_token": "[UNK]"
}

View File

@@ -0,0 +1,89 @@
{
"best_global_step": 1902,
"best_metric": 78.458442399707,
"best_model_checkpoint": "mbert-loraxs-qa-vanilla/run-3/checkpoint-1902",
"epoch": 3.0,
"eval_steps": 500,
"global_step": 1902,
"is_hyper_param_search": true,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.7886435331230284,
"grad_norm": 31.252710342407227,
"learning_rate": 2.5915663787327118e-05,
"loss": 2.36512060546875,
"step": 500
},
{
"epoch": 1.0,
"eval_exact_match": 61.76,
"eval_f1": 76.08343679857553,
"eval_loss": 1.205523133277893,
"eval_runtime": 5.7547,
"eval_samples_per_second": 219.822,
"eval_steps_per_second": 13.902,
"step": 634
},
{
"epoch": 1.5772870662460567,
"grad_norm": 29.112215042114258,
"learning_rate": 1.6679860584430782e-05,
"loss": 1.0828076171875,
"step": 1000
},
{
"epoch": 2.0,
"eval_exact_match": 64.4,
"eval_f1": 77.92568009442539,
"eval_loss": 1.2169331312179565,
"eval_runtime": 5.8111,
"eval_samples_per_second": 217.687,
"eval_steps_per_second": 13.767,
"step": 1268
},
{
"epoch": 2.365930599369085,
"grad_norm": 7.044902324676514,
"learning_rate": 7.444057381534446e-06,
"loss": 0.7706432495117187,
"step": 1500
},
{
"epoch": 3.0,
"eval_exact_match": 64.24,
"eval_f1": 78.458442399707,
"eval_loss": 1.3074095249176025,
"eval_runtime": 6.3974,
"eval_samples_per_second": 197.738,
"eval_steps_per_second": 12.505,
"step": 1902
}
],
"logging_steps": 500,
"max_steps": 1902,
"num_input_tokens_seen": 0,
"num_train_epochs": 3,
"save_steps": 50,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": true
},
"attributes": {}
}
},
"total_flos": 4702949676112896.0,
"train_batch_size": 16,
"trial_name": null,
"trial_params": {
"learning_rate": 3.160491856031126e-05,
"num_train_epochs": 3,
"weight_decay": 0.022722580353297495
}
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:36729c4002495c3bd45ea9dbd839a6d681edb2dc4c2c499e2b6267d586c6ddfd
size 5265

View File

@@ -0,0 +1,206 @@
---
base_model: bert-base-multilingual-cased
library_name: peft
tags:
- base_model:adapter:bert-base-multilingual-cased
- lora
- transformers
---
# Model Card for Model ID
<!-- Provide a quick summary of what the model is/does. -->
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->
- **Developed by:** [More Information Needed]
- **Funded by [optional]:** [More Information Needed]
- **Shared by [optional]:** [More Information Needed]
- **Model type:** [More Information Needed]
- **Language(s) (NLP):** [More Information Needed]
- **License:** [More Information Needed]
- **Finetuned from model [optional]:** [More Information Needed]
### Model Sources [optional]
<!-- Provide the basic links for the model. -->
- **Repository:** [More Information Needed]
- **Paper [optional]:** [More Information Needed]
- **Demo [optional]:** [More Information Needed]
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Direct Use
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
[More Information Needed]
### Downstream Use [optional]
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
[More Information Needed]
### Out-of-Scope Use
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
[More Information Needed]
## Bias, Risks, and Limitations
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
[More Information Needed]
### Recommendations
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
## How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
## Training Details
### Training Data
<!-- 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. -->
[More Information Needed]
### Training Procedure
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
#### Preprocessing [optional]
[More Information Needed]
#### Training Hyperparameters
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
#### Speeds, Sizes, Times [optional]
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
[More Information Needed]
## Evaluation
<!-- This section describes the evaluation protocols and provides the results. -->
### Testing Data, Factors & Metrics
#### Testing Data
<!-- This should link to a Dataset Card if possible. -->
[More Information Needed]
#### Factors
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
[More Information Needed]
#### Metrics
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
[More Information Needed]
### Results
[More Information Needed]
#### Summary
## Model Examination [optional]
<!-- Relevant interpretability work for the model goes here -->
[More Information Needed]
## Environmental Impact
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
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).
- **Hardware Type:** [More Information Needed]
- **Hours used:** [More Information Needed]
- **Cloud Provider:** [More Information Needed]
- **Compute Region:** [More Information Needed]
- **Carbon Emitted:** [More Information Needed]
## Technical Specifications [optional]
### Model Architecture and Objective
[More Information Needed]
### Compute Infrastructure
[More Information Needed]
#### Hardware
[More Information Needed]
#### Software
[More Information Needed]
## Citation [optional]
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
**BibTeX:**
[More Information Needed]
**APA:**
[More Information Needed]
## Glossary [optional]
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
[More Information Needed]
## More Information [optional]
[More Information Needed]
## Model Card Authors [optional]
[More Information Needed]
## Model Card Contact
[More Information Needed]
### Framework versions
- PEFT 0.19.1

View File

@@ -0,0 +1,47 @@
{
"alora_invocation_tokens": null,
"alpha_pattern": {},
"arrow_config": null,
"auto_mapping": null,
"base_model_name_or_path": "bert-base-multilingual-cased",
"bias": "none",
"corda_config": null,
"ensure_weight_tying": false,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": true,
"init_lora_weights": true,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 256,
"lora_bias": false,
"lora_dropout": 0.22980730880873645,
"lora_ga_config": null,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": [
"qa_outputs"
],
"peft_type": "LORA",
"peft_version": "0.19.1",
"qalora_group_size": 16,
"r": 128,
"rank_pattern": {},
"revision": null,
"target_modules": [
"dense",
"query",
"key",
"value"
],
"target_parameters": null,
"task_type": "QUESTION_ANS",
"trainable_token_indices": null,
"use_bdlora": null,
"use_dora": false,
"use_qalora": false,
"use_rslora": false
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:210bf2d0e5d712d2671e069acb52222927b184bbfbae9d06cc0591e1d84e6e9c
size 89691896

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:35203c5e8170dba0ed74b76e6ce6ccd64090183cb7523a6386dca8cdd7b0958d
size 9513163

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc7e99a3c7ffa13296909a4706206b81beeab2a90baf567fee84af604b813e3c
size 14645

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a3597fc31cbd2285a9eb156e98e7f2110af6c071145e059b0a37c01b2577d027
size 1383

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a5f1d281ea055aed7591bbb82101742f78ad777dc1be59d9f91610c442b51e66
size 1465

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,15 @@
{
"backend": "tokenizers",
"cls_token": "[CLS]",
"do_lower_case": false,
"is_local": false,
"local_files_only": false,
"mask_token": "[MASK]",
"model_max_length": 512,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "BertTokenizer",
"unk_token": "[UNK]"
}

View File

@@ -0,0 +1,126 @@
{
"best_global_step": 2536,
"best_metric": 73.9060878995219,
"best_model_checkpoint": "mbert-loraxs-qa-vanilla/run-3/checkpoint-2536",
"epoch": 5.0,
"eval_steps": 500,
"global_step": 3170,
"is_hyper_param_search": true,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 1.0,
"grad_norm": 25.72856330871582,
"learning_rate": 0.00036170225367171497,
"loss": 2.8233307558655363,
"step": 634
},
{
"epoch": 1.0,
"eval_exact_match": 50.32,
"eval_f1": 63.941961174475914,
"eval_loss": 1.6252752542495728,
"eval_runtime": 7.6169,
"eval_samples_per_second": 166.078,
"eval_steps_per_second": 10.503,
"step": 634
},
{
"epoch": 2.0,
"grad_norm": 27.754880905151367,
"learning_rate": 0.0002893846160722614,
"loss": 1.7085243971189865,
"step": 1268
},
{
"epoch": 2.0,
"eval_exact_match": 55.28,
"eval_f1": 70.42089105490078,
"eval_loss": 1.4321246147155762,
"eval_runtime": 7.709,
"eval_samples_per_second": 164.095,
"eval_steps_per_second": 10.378,
"step": 1268
},
{
"epoch": 3.0,
"grad_norm": 28.5296688079834,
"learning_rate": 0.00021706697847280782,
"loss": 1.4246620154155165,
"step": 1902
},
{
"epoch": 3.0,
"eval_exact_match": 56.88,
"eval_f1": 71.30211904005495,
"eval_loss": 1.389769434928894,
"eval_runtime": 7.7582,
"eval_samples_per_second": 163.053,
"eval_steps_per_second": 10.312,
"step": 1902
},
{
"epoch": 4.0,
"grad_norm": 20.22711944580078,
"learning_rate": 0.00014474934087335426,
"loss": 1.1686882717000198,
"step": 2536
},
{
"epoch": 4.0,
"eval_exact_match": 59.36,
"eval_f1": 73.9060878995219,
"eval_loss": 1.3756252527236938,
"eval_runtime": 7.8225,
"eval_samples_per_second": 161.714,
"eval_steps_per_second": 10.227,
"step": 2536
},
{
"epoch": 5.0,
"grad_norm": 13.985761642456055,
"learning_rate": 7.243170327390066e-05,
"loss": 0.9745011675621057,
"step": 3170
},
{
"epoch": 5.0,
"eval_exact_match": 59.68,
"eval_f1": 73.67245039400858,
"eval_loss": 1.39497971534729,
"eval_runtime": 7.6711,
"eval_samples_per_second": 164.904,
"eval_steps_per_second": 10.429,
"step": 3170
}
],
"logging_steps": 500,
"max_steps": 3804,
"num_input_tokens_seen": 0,
"num_train_epochs": 6,
"save_steps": 500,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": false
},
"attributes": {}
}
},
"total_flos": 1.255786481069568e+16,
"train_batch_size": 16,
"trial_name": null,
"trial_params": {
"learning_rate": 0.0003904468036323811,
"lora_alpha": 256,
"lora_dropout": 0.22980730880873645,
"lora_r": 128,
"num_train_epochs": 6,
"weight_decay": 0.06293800360990247
}
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e1d95695f1ddc0799b301d7f4ac64dcd9cd865b77a1731b3b4bfbf9cc4240cda
size 5201

View File

@@ -0,0 +1,206 @@
---
base_model: bert-base-multilingual-cased
library_name: peft
tags:
- base_model:adapter:bert-base-multilingual-cased
- lora
- transformers
---
# Model Card for Model ID
<!-- Provide a quick summary of what the model is/does. -->
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->
- **Developed by:** [More Information Needed]
- **Funded by [optional]:** [More Information Needed]
- **Shared by [optional]:** [More Information Needed]
- **Model type:** [More Information Needed]
- **Language(s) (NLP):** [More Information Needed]
- **License:** [More Information Needed]
- **Finetuned from model [optional]:** [More Information Needed]
### Model Sources [optional]
<!-- Provide the basic links for the model. -->
- **Repository:** [More Information Needed]
- **Paper [optional]:** [More Information Needed]
- **Demo [optional]:** [More Information Needed]
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Direct Use
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
[More Information Needed]
### Downstream Use [optional]
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
[More Information Needed]
### Out-of-Scope Use
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
[More Information Needed]
## Bias, Risks, and Limitations
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
[More Information Needed]
### Recommendations
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
## How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
## Training Details
### Training Data
<!-- 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. -->
[More Information Needed]
### Training Procedure
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
#### Preprocessing [optional]
[More Information Needed]
#### Training Hyperparameters
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
#### Speeds, Sizes, Times [optional]
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
[More Information Needed]
## Evaluation
<!-- This section describes the evaluation protocols and provides the results. -->
### Testing Data, Factors & Metrics
#### Testing Data
<!-- This should link to a Dataset Card if possible. -->
[More Information Needed]
#### Factors
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
[More Information Needed]
#### Metrics
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
[More Information Needed]
### Results
[More Information Needed]
#### Summary
## Model Examination [optional]
<!-- Relevant interpretability work for the model goes here -->
[More Information Needed]
## Environmental Impact
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
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).
- **Hardware Type:** [More Information Needed]
- **Hours used:** [More Information Needed]
- **Cloud Provider:** [More Information Needed]
- **Compute Region:** [More Information Needed]
- **Carbon Emitted:** [More Information Needed]
## Technical Specifications [optional]
### Model Architecture and Objective
[More Information Needed]
### Compute Infrastructure
[More Information Needed]
#### Hardware
[More Information Needed]
#### Software
[More Information Needed]
## Citation [optional]
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
**BibTeX:**
[More Information Needed]
**APA:**
[More Information Needed]
## Glossary [optional]
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
[More Information Needed]
## More Information [optional]
[More Information Needed]
## Model Card Authors [optional]
[More Information Needed]
## Model Card Contact
[More Information Needed]
### Framework versions
- PEFT 0.19.1

View File

@@ -0,0 +1,47 @@
{
"alora_invocation_tokens": null,
"alpha_pattern": {},
"arrow_config": null,
"auto_mapping": null,
"base_model_name_or_path": "bert-base-multilingual-cased",
"bias": "none",
"corda_config": null,
"ensure_weight_tying": false,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": true,
"init_lora_weights": true,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 256,
"lora_bias": false,
"lora_dropout": 0.22980730880873645,
"lora_ga_config": null,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": [
"qa_outputs"
],
"peft_type": "LORA",
"peft_version": "0.19.1",
"qalora_group_size": 16,
"r": 128,
"rank_pattern": {},
"revision": null,
"target_modules": [
"dense",
"query",
"key",
"value"
],
"target_parameters": null,
"task_type": "QUESTION_ANS",
"trainable_token_indices": null,
"use_bdlora": null,
"use_dora": false,
"use_qalora": false,
"use_rslora": false
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6ad3f6b9cfa40880a050ef3cfc171f8f57f2562a691ceb0da73b80b4e31b9435
size 89691896

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:74726e97ad81eb04c89ec7456fc50000250e33cb889910e4f0cd18e3e82afcd5
size 9513163

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ad37a0ac745043f93d3ded513387afebf4ff938075fb793c21a9ab2799992660
size 14645

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:64d0fe9c6dc6efa96b399299f326eaecc142d971c34f7ffd53c4edac92597026
size 1383

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:00b0c58cd04db747cb6ff409eeef3dfc3350b074cdfae68f221284288b8db7a9
size 1465

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,15 @@
{
"backend": "tokenizers",
"cls_token": "[CLS]",
"do_lower_case": false,
"is_local": false,
"local_files_only": false,
"mask_token": "[MASK]",
"model_max_length": 512,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "BertTokenizer",
"unk_token": "[UNK]"
}

View File

@@ -0,0 +1,143 @@
{
"best_global_step": 3804,
"best_metric": 74.95790011701307,
"best_model_checkpoint": "mbert-loraxs-qa-vanilla/run-3/checkpoint-3804",
"epoch": 6.0,
"eval_steps": 500,
"global_step": 3804,
"is_hyper_param_search": true,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 1.0,
"grad_norm": 25.72856330871582,
"learning_rate": 0.00036170225367171497,
"loss": 2.8233307558655363,
"step": 634
},
{
"epoch": 1.0,
"eval_exact_match": 50.32,
"eval_f1": 63.941961174475914,
"eval_loss": 1.6252752542495728,
"eval_runtime": 7.6169,
"eval_samples_per_second": 166.078,
"eval_steps_per_second": 10.503,
"step": 634
},
{
"epoch": 2.0,
"grad_norm": 27.754880905151367,
"learning_rate": 0.0002893846160722614,
"loss": 1.7085243971189865,
"step": 1268
},
{
"epoch": 2.0,
"eval_exact_match": 55.28,
"eval_f1": 70.42089105490078,
"eval_loss": 1.4321246147155762,
"eval_runtime": 7.709,
"eval_samples_per_second": 164.095,
"eval_steps_per_second": 10.378,
"step": 1268
},
{
"epoch": 3.0,
"grad_norm": 28.5296688079834,
"learning_rate": 0.00021706697847280782,
"loss": 1.4246620154155165,
"step": 1902
},
{
"epoch": 3.0,
"eval_exact_match": 56.88,
"eval_f1": 71.30211904005495,
"eval_loss": 1.389769434928894,
"eval_runtime": 7.7582,
"eval_samples_per_second": 163.053,
"eval_steps_per_second": 10.312,
"step": 1902
},
{
"epoch": 4.0,
"grad_norm": 20.22711944580078,
"learning_rate": 0.00014474934087335426,
"loss": 1.1686882717000198,
"step": 2536
},
{
"epoch": 4.0,
"eval_exact_match": 59.36,
"eval_f1": 73.9060878995219,
"eval_loss": 1.3756252527236938,
"eval_runtime": 7.8225,
"eval_samples_per_second": 161.714,
"eval_steps_per_second": 10.227,
"step": 2536
},
{
"epoch": 5.0,
"grad_norm": 13.985761642456055,
"learning_rate": 7.243170327390066e-05,
"loss": 0.9745011675621057,
"step": 3170
},
{
"epoch": 5.0,
"eval_exact_match": 59.68,
"eval_f1": 73.67245039400858,
"eval_loss": 1.39497971534729,
"eval_runtime": 7.6711,
"eval_samples_per_second": 164.904,
"eval_steps_per_second": 10.429,
"step": 3170
},
{
"epoch": 6.0,
"grad_norm": 14.129449844360352,
"learning_rate": 1.1406567444708766e-07,
"loss": 0.7958141531477967,
"step": 3804
},
{
"epoch": 6.0,
"eval_exact_match": 61.12,
"eval_f1": 74.95790011701307,
"eval_loss": 1.4900548458099365,
"eval_runtime": 7.6872,
"eval_samples_per_second": 164.559,
"eval_steps_per_second": 10.407,
"step": 3804
}
],
"logging_steps": 500,
"max_steps": 3804,
"num_input_tokens_seen": 0,
"num_train_epochs": 6,
"save_steps": 500,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": true
},
"attributes": {}
}
},
"total_flos": 1.5069437772834816e+16,
"train_batch_size": 16,
"trial_name": null,
"trial_params": {
"learning_rate": 0.0003904468036323811,
"lora_alpha": 256,
"lora_dropout": 0.22980730880873645,
"lora_r": 128,
"num_train_epochs": 6,
"weight_decay": 0.06293800360990247
}
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e1d95695f1ddc0799b301d7f4ac64dcd9cd865b77a1731b3b4bfbf9cc4240cda
size 5201

View File

@@ -0,0 +1,206 @@
---
base_model: bert-base-multilingual-cased
library_name: peft
tags:
- base_model:adapter:bert-base-multilingual-cased
- lora
- transformers
---
# Model Card for Model ID
<!-- Provide a quick summary of what the model is/does. -->
## Model Details
### Model Description
<!-- Provide a longer summary of what this model is. -->
- **Developed by:** [More Information Needed]
- **Funded by [optional]:** [More Information Needed]
- **Shared by [optional]:** [More Information Needed]
- **Model type:** [More Information Needed]
- **Language(s) (NLP):** [More Information Needed]
- **License:** [More Information Needed]
- **Finetuned from model [optional]:** [More Information Needed]
### Model Sources [optional]
<!-- Provide the basic links for the model. -->
- **Repository:** [More Information Needed]
- **Paper [optional]:** [More Information Needed]
- **Demo [optional]:** [More Information Needed]
## Uses
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
### Direct Use
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
[More Information Needed]
### Downstream Use [optional]
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
[More Information Needed]
### Out-of-Scope Use
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
[More Information Needed]
## Bias, Risks, and Limitations
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
[More Information Needed]
### Recommendations
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
## How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
## Training Details
### Training Data
<!-- 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. -->
[More Information Needed]
### Training Procedure
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
#### Preprocessing [optional]
[More Information Needed]
#### Training Hyperparameters
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
#### Speeds, Sizes, Times [optional]
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
[More Information Needed]
## Evaluation
<!-- This section describes the evaluation protocols and provides the results. -->
### Testing Data, Factors & Metrics
#### Testing Data
<!-- This should link to a Dataset Card if possible. -->
[More Information Needed]
#### Factors
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
[More Information Needed]
#### Metrics
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
[More Information Needed]
### Results
[More Information Needed]
#### Summary
## Model Examination [optional]
<!-- Relevant interpretability work for the model goes here -->
[More Information Needed]
## Environmental Impact
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
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).
- **Hardware Type:** [More Information Needed]
- **Hours used:** [More Information Needed]
- **Cloud Provider:** [More Information Needed]
- **Compute Region:** [More Information Needed]
- **Carbon Emitted:** [More Information Needed]
## Technical Specifications [optional]
### Model Architecture and Objective
[More Information Needed]
### Compute Infrastructure
[More Information Needed]
#### Hardware
[More Information Needed]
#### Software
[More Information Needed]
## Citation [optional]
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
**BibTeX:**
[More Information Needed]
**APA:**
[More Information Needed]
## Glossary [optional]
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
[More Information Needed]
## More Information [optional]
[More Information Needed]
## Model Card Authors [optional]
[More Information Needed]
## Model Card Contact
[More Information Needed]
### Framework versions
- PEFT 0.19.1

View File

@@ -0,0 +1,47 @@
{
"alora_invocation_tokens": null,
"alpha_pattern": {},
"arrow_config": null,
"auto_mapping": null,
"base_model_name_or_path": "bert-base-multilingual-cased",
"bias": "none",
"corda_config": null,
"ensure_weight_tying": false,
"eva_config": null,
"exclude_modules": null,
"fan_in_fan_out": false,
"inference_mode": true,
"init_lora_weights": true,
"layer_replication": null,
"layers_pattern": null,
"layers_to_transform": null,
"loftq_config": {},
"lora_alpha": 256,
"lora_bias": false,
"lora_dropout": 0.22980730880873645,
"lora_ga_config": null,
"megatron_config": null,
"megatron_core": "megatron.core",
"modules_to_save": [
"qa_outputs"
],
"peft_type": "LORA",
"peft_version": "0.19.1",
"qalora_group_size": 16,
"r": 128,
"rank_pattern": {},
"revision": null,
"target_modules": [
"dense",
"query",
"key",
"value"
],
"target_parameters": null,
"task_type": "QUESTION_ANS",
"trainable_token_indices": null,
"use_bdlora": null,
"use_dora": false,
"use_qalora": false,
"use_rslora": false
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7d42a6bb62efdd0decd3b22ec434adb30eee2fb7a306a830e38bb7b1ae404e2c
size 89691896

View File

@@ -0,0 +1,34 @@
{
"add_cross_attention": false,
"architectures": [
"BertForQuestionAnswering"
],
"attention_probs_dropout_prob": 0.1,
"bos_token_id": null,
"classifier_dropout": null,
"directionality": "bidi",
"dtype": "float32",
"eos_token_id": null,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 768,
"initializer_range": 0.02,
"intermediate_size": 3072,
"is_decoder": false,
"layer_norm_eps": 1e-12,
"max_position_embeddings": 512,
"model_type": "bert",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"pad_token_id": 0,
"pooler_fc_size": 768,
"pooler_num_attention_heads": 12,
"pooler_num_fc_layers": 3,
"pooler_size_per_head": 128,
"pooler_type": "first_token_transform",
"tie_word_embeddings": true,
"transformers_version": "5.9.0",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 119547
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e967881a24cda4ab3a539d00bec392d8219fd44b2b7fd85af2be6f2c5d2161e3
size 709080872

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dbec48b6c255a095bbe00aae779f317d17a8af0cd8fd7fb58897a0ba8c91bc1a
size 9513163

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6ec2aad255418a7f342d4c5272744bbbfed81379f61e25bb0bc64e547232444c
size 14645

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c650da4ad893a91070de06566337f0e436f7eec83cdb7057519c9b454d98d3d9
size 1383

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:004fb552d7d888fe807ee87b041960f983aeb0d1c815c137d2d6d77862560094
size 1465

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,15 @@
{
"backend": "tokenizers",
"cls_token": "[CLS]",
"do_lower_case": false,
"is_local": false,
"local_files_only": false,
"mask_token": "[MASK]",
"model_max_length": 512,
"pad_token": "[PAD]",
"sep_token": "[SEP]",
"strip_accents": null,
"tokenize_chinese_chars": true,
"tokenizer_class": "BertTokenizer",
"unk_token": "[UNK]"
}

View File

@@ -0,0 +1,58 @@
{
"best_global_step": 634,
"best_metric": 63.941961174475914,
"best_model_checkpoint": "mbert-loraxs-qa-vanilla/run-3/checkpoint-634",
"epoch": 1.0,
"eval_steps": 500,
"global_step": 634,
"is_hyper_param_search": true,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 1.0,
"grad_norm": 25.72856330871582,
"learning_rate": 0.00036170225367171497,
"loss": 2.8233307558655363,
"step": 634
},
{
"epoch": 1.0,
"eval_exact_match": 50.32,
"eval_f1": 63.941961174475914,
"eval_loss": 1.6252752542495728,
"eval_runtime": 7.6169,
"eval_samples_per_second": 166.078,
"eval_steps_per_second": 10.503,
"step": 634
}
],
"logging_steps": 500,
"max_steps": 3804,
"num_input_tokens_seen": 0,
"num_train_epochs": 6,
"save_steps": 500,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": false
},
"attributes": {}
}
},
"total_flos": 2511572962139136.0,
"train_batch_size": 16,
"trial_name": null,
"trial_params": {
"learning_rate": 0.0003904468036323811,
"lora_alpha": 256,
"lora_dropout": 0.22980730880873645,
"lora_r": 128,
"num_train_epochs": 6,
"weight_decay": 0.06293800360990247
}
}

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e1d95695f1ddc0799b301d7f4ac64dcd9cd865b77a1731b3b4bfbf9cc4240cda
size 5201