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

Model: TucanoBR/Tucano-630m
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-06-23 17:56:19 +08:00
commit ca33700e94
19 changed files with 65312 additions and 0 deletions

35
.gitattributes vendored Normal file
View File

@@ -0,0 +1,35 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.ftz filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.h5 filter=lfs diff=lfs merge=lfs -text
*.joblib filter=lfs diff=lfs merge=lfs -text
*.lfs.* filter=lfs diff=lfs merge=lfs -text
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.ot filter=lfs diff=lfs merge=lfs -text
*.parquet filter=lfs diff=lfs merge=lfs -text
*.pb filter=lfs diff=lfs merge=lfs -text
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
*.tar.* filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tflite filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text

21
EVALS-630m.csv Normal file
View File

@@ -0,0 +1,21 @@
step,enem,bluex,oab_exams,assin2_rte,assin2_sts,faquad_nli,hatebr,hatespeech_pt,tweet_br,arc_pt,hellaswag_pt,truthfulqa,calame_pt,lambada_pt
20000,19.52,20.58,24.28,34.02,2.76,43.97,33.9,22.99,23.16,25.64,33.28,41.74,52.26,26.12
40000,20.71,22.67,24.87,35.61,1.89,43.97,22.21,22.99,15.07,27.61,34.51,39.61,51.93,28.24
60000,20.01,24.62,27.02,33.33,0.87,43.97,33.33,41.23,15.49,27.01,34.73,40.51,52.5,27.23
80000,18.75,21.84,24.33,33.42,7.28,43.97,33.71,42.02,19.81,26.24,35.88,39.9,53.03,29.69
100000,20.64,19.89,24.56,33.33,3.06,43.97,33.33,41.23,20.73,28.55,36.18,41.75,53.47,28.76
120000,19.52,19.33,24.37,34.95,0.78,43.97,37.58,42.26,20.73,27.95,36.63,42.25,53.18,29.32
140000,20.43,24.48,24.1,33.33,3.33,43.97,53.0,42.42,20.73,27.01,36.91,40.61,53.9,27.65
160000,20.57,23.09,27.11,47.31,0.52,43.97,33.49,22.99,21.83,26.84,37.45,41.91,54.19,29.96
180000,20.5,19.75,24.74,38.51,1.59,43.97,33.65,22.99,20.73,29.32,37.51,40.27,55.2,30.25
200000,20.36,24.76,25.83,49.77,1.24,43.97,38.38,23.85,24.36,27.26,38.26,39.82,54.48,32.78
220000,18.96,24.2,25.24,37.53,5.04,43.97,33.65,22.99,20.73,28.46,38.4,42.24,55.39,33.34
240000,20.57,21.56,23.96,55.96,1.67,43.97,42.21,31.62,20.73,28.21,38.9,41.12,55.78,32.66
260000,20.01,18.92,23.64,36.61,1.66,43.97,48.63,25.06,20.73,28.38,39.04,41.25,55.44,33.57
280000,19.17,21.14,25.6,53.23,0.18,43.97,53.36,45.31,20.73,28.38,39.5,41.92,55.64,32.29
300000,19.8,19.89,25.47,57.79,2.57,43.97,34.46,22.99,20.72,27.78,39.4,41.9,55.83,33.44
320000,18.61,22.39,25.88,61.51,7.66,43.97,55.62,39.26,24.75,28.8,39.39,42.82,56.55,33.32
340000,20.22,21.7,25.69,55.58,2.74,43.97,56.21,35.7,20.73,28.63,39.48,42.34,56.89,33.18
360000,18.96,24.48,25.74,59.17,10.57,43.97,55.6,26.08,28.63,28.46,39.48,42.37,56.17,33.5
380000,18.12,24.34,25.65,41.19,2.13,43.97,33.78,23.17,22.64,28.63,39.31,43.2,56.5,33.73
400000,19.17,24.76,25.28,57.79,1.99,43.97,53.73,30.01,20.73,28.89,39.41,42.76,56.55,33.13
1 step enem bluex oab_exams assin2_rte assin2_sts faquad_nli hatebr hatespeech_pt tweet_br arc_pt hellaswag_pt truthfulqa calame_pt lambada_pt
2 20000 19.52 20.58 24.28 34.02 2.76 43.97 33.9 22.99 23.16 25.64 33.28 41.74 52.26 26.12
3 40000 20.71 22.67 24.87 35.61 1.89 43.97 22.21 22.99 15.07 27.61 34.51 39.61 51.93 28.24
4 60000 20.01 24.62 27.02 33.33 0.87 43.97 33.33 41.23 15.49 27.01 34.73 40.51 52.5 27.23
5 80000 18.75 21.84 24.33 33.42 7.28 43.97 33.71 42.02 19.81 26.24 35.88 39.9 53.03 29.69
6 100000 20.64 19.89 24.56 33.33 3.06 43.97 33.33 41.23 20.73 28.55 36.18 41.75 53.47 28.76
7 120000 19.52 19.33 24.37 34.95 0.78 43.97 37.58 42.26 20.73 27.95 36.63 42.25 53.18 29.32
8 140000 20.43 24.48 24.1 33.33 3.33 43.97 53.0 42.42 20.73 27.01 36.91 40.61 53.9 27.65
9 160000 20.57 23.09 27.11 47.31 0.52 43.97 33.49 22.99 21.83 26.84 37.45 41.91 54.19 29.96
10 180000 20.5 19.75 24.74 38.51 1.59 43.97 33.65 22.99 20.73 29.32 37.51 40.27 55.2 30.25
11 200000 20.36 24.76 25.83 49.77 1.24 43.97 38.38 23.85 24.36 27.26 38.26 39.82 54.48 32.78
12 220000 18.96 24.2 25.24 37.53 5.04 43.97 33.65 22.99 20.73 28.46 38.4 42.24 55.39 33.34
13 240000 20.57 21.56 23.96 55.96 1.67 43.97 42.21 31.62 20.73 28.21 38.9 41.12 55.78 32.66
14 260000 20.01 18.92 23.64 36.61 1.66 43.97 48.63 25.06 20.73 28.38 39.04 41.25 55.44 33.57
15 280000 19.17 21.14 25.6 53.23 0.18 43.97 53.36 45.31 20.73 28.38 39.5 41.92 55.64 32.29
16 300000 19.8 19.89 25.47 57.79 2.57 43.97 34.46 22.99 20.72 27.78 39.4 41.9 55.83 33.44
17 320000 18.61 22.39 25.88 61.51 7.66 43.97 55.62 39.26 24.75 28.8 39.39 42.82 56.55 33.32
18 340000 20.22 21.7 25.69 55.58 2.74 43.97 56.21 35.7 20.73 28.63 39.48 42.34 56.89 33.18
19 360000 18.96 24.48 25.74 59.17 10.57 43.97 55.6 26.08 28.63 28.46 39.48 42.37 56.17 33.5
20 380000 18.12 24.34 25.65 41.19 2.13 43.97 33.78 23.17 22.64 28.63 39.31 43.2 56.5 33.73
21 400000 19.17 24.76 25.28 57.79 1.99 43.97 53.73 30.01 20.73 28.89 39.41 42.76 56.55 33.13

190
LICENSE Normal file
View File

@@ -0,0 +1,190 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
Copyright Nicholas Kluge Corrêa, Aniket Sen, Sophia Falk, and Shiza Fatimah
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

428
README.md Normal file
View File

@@ -0,0 +1,428 @@
---
language:
- pt
license: apache-2.0
library_name: transformers
tags:
- text-generation-inference
datasets:
- TucanoBR/GigaVerbo
metrics:
- perplexity
pipeline_tag: text-generation
widget:
- text: "A floresta da Amazônia é conhecida por sua"
example_title: Exemplo
- text: "Uma das coisas que Portugal, Angola, Brasil e Moçambique tem em comum é o"
example_title: Exemplo
- text: "O Carnaval do Rio de Janeiro é"
example_title: Exemplo
inference:
parameters:
repetition_penalty: 1.2
temperature: 0.1
top_k: 50
top_p: 1.0
max_new_tokens: 150
co2_eq_emissions:
emissions: 350000
source: CodeCarbon
training_type: pre-training
geographical_location: Germany
hardware_used: NVIDIA A100-SXM4-80GB
model-index:
- name: Tucano-630m
results:
- task:
type: text-generation
name: Text Generation
dataset:
name: CALAME-PT
type: NOVA-vision-language/calame-pt
split: all
args:
num_few_shot: 0
metrics:
- type: acc
value: 56.55
name: accuracy
source:
url: https://huggingface.co/datasets/NOVA-vision-language/calame-pt
name: Context-Aware LAnguage Modeling Evaluation for Portuguese
- task:
type: text-generation
name: Text Generation
dataset:
name: LAMBADA-PT
type: TucanoBR/lambada-pt
split: train
args:
num_few_shot: 0
metrics:
- type: acc
value: 33.13
name: accuracy
source:
url: https://huggingface.co/datasets/TucanoBR/lambada-pt
name: LAMBADA-PT
- task:
type: text-generation
name: Text Generation
dataset:
name: ENEM Challenge (No Images)
type: eduagarcia/enem_challenge
split: train
args:
num_few_shot: 3
metrics:
- type: acc
value: 19.17
name: accuracy
source:
url: https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard
name: Open Portuguese LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: BLUEX (No Images)
type: eduagarcia-temp/BLUEX_without_images
split: train
args:
num_few_shot: 3
metrics:
- type: acc
value: 24.76
name: accuracy
source:
url: https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard
name: Open Portuguese LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: OAB Exams
type: eduagarcia/oab_exams
split: train
args:
num_few_shot: 3
metrics:
- type: acc
value: 25.28
name: accuracy
source:
url: https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard
name: Open Portuguese LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: Assin2 RTE
type: assin2
split: test
args:
num_few_shot: 15
metrics:
- type: f1_macro
value: 57.79
name: f1-macro
source:
url: https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard
name: Open Portuguese LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: Assin2 STS
type: eduagarcia/portuguese_benchmark
split: test
args:
num_few_shot: 10
metrics:
- type: pearson
value: 1.99
name: pearson
source:
url: https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard
name: Open Portuguese LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: FaQuAD NLI
type: ruanchaves/faquad-nli
split: test
args:
num_few_shot: 15
metrics:
- type: f1_macro
value: 43.97
name: f1-macro
source:
url: https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard
name: Open Portuguese LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: HateBR Binary
type: ruanchaves/hatebr
split: test
args:
num_few_shot: 25
metrics:
- type: f1_macro
value: 53.73
name: f1-macro
source:
url: https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard
name: Open Portuguese LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: PT Hate Speech Binary
type: hate_speech_portuguese
split: test
args:
num_few_shot: 25
metrics:
- type: f1_macro
value: 30.01
name: f1-macro
source:
url: https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard
name: Open Portuguese LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: tweetSentBR
type: eduagarcia-temp/tweetsentbr
split: test
args:
num_few_shot: 25
metrics:
- type: f1_macro
value: 20.73
name: f1-macro
source:
url: https://huggingface.co/spaces/eduagarcia/open_pt_llm_leaderboard
name: Open Portuguese LLM Leaderboard
- task:
type: text-generation
name: Text Generation
dataset:
name: ARC-Challenge (PT)
type: arc_pt
args:
num_few_shot: 25
metrics:
- type: acc_norm
value: 28.89
name: normalized accuracy
source:
url: https://github.com/nlp-uoregon/mlmm-evaluation
name: Evaluation Framework for Multilingual Large Language Models
- task:
type: text-generation
name: Text Generation
dataset:
name: HellaSwag (PT)
type: hellaswag_pt
args:
num_few_shot: 10
metrics:
- type: acc_norm
value: 39.41
name: normalized accuracy
source:
url: https://github.com/nlp-uoregon/mlmm-evaluation
name: Evaluation Framework for Multilingual Large Language Models
- task:
type: text-generation
name: Text Generation
dataset:
name: TruthfulQA (PT)
type: truthfulqa_pt
args:
num_few_shot: 0
metrics:
- type: mc2
value: 42.76
name: bleurt
source:
url: https://github.com/nlp-uoregon/mlmm-evaluation
name: Evaluation Framework for Multilingual Large Language Models
---
# Tucano-630m
<img src="./logo.png" alt="An illustration of a Tucano bird showing vibrant colors like yellow, orange, blue, green, and black." height="200">
## Model Summary
**[Tucano](https://huggingface.co/TucanoBR)** is a series of decoder-transformers natively pretrained in Portuguese. All Tucano models were trained on **[GigaVerbo](https://huggingface.co/datasets/TucanoBR/GigaVerbo)**, a concatenation of deduplicated Portuguese text corpora amounting to 200 billion tokens.
Read our preprint [here](https://arxiv.org/abs/2411.07854).
## Details
- **Architecture:** a Transformer-based model pre-trained via causal language modeling
- **Size:** 630,253,568 parameters
- **Context length:** 2048 tokens
- **Dataset:** [TucanoBR/GigaVerbo](https://huggingface.co/datasets/TucanoBR/GigaVerbo)
- **Language:** Portuguese
- **Number of steps:** 400,000
- **GPU:** 8 NVIDIA A100-SXM4-80GB
- **Training time**: ~ 170 hours
- **Emissions:** 350 KgCO2 (Germany)
- **Total energy consumption:** 920 kWh
This repository has the [source code](https://github.com/Nkluge-correa/Tucano) used to train this model. The main libraries used are:
- [PyTorch](https://github.com/pytorch/pytorch)
- [Transformers](https://github.com/huggingface/transformers)
- [Datasets](https://github.com/huggingface/datasets)
- [Tokenizers](https://github.com/huggingface/tokenizers)
- [Sentencepiece](https://github.com/google/sentencepiece)
- [Accelerate](https://github.com/huggingface/accelerate)
- [FlashAttention](https://github.com/Dao-AILab/flash-attention)
- [Liger Kernel](https://github.com/linkedin/Liger-Kernel)
- [Codecarbon](https://github.com/mlco2/codecarbon)
- [TRL](https://github.com/huggingface/trl)
## Intended Uses
The primary intended use of the Tucano models is to serve as foundations for research and development involving native Portuguese language modeling. Checkpoints saved during training are designed to provide a controlled setting for performing comparative experiments, specifically regarding the effects of active pretraining on the performance of currently available benchmarks. You may also fine-tune and adapt Tucano models for deployment if your use follows the Apache 2.0 license. If you decide to use the Tucano models as a basis for your fine-tuned model, please conduct your own risk and bias assessment.
## Out-of-scope Use
- Tucano models are **not intended for deployment**. They are not an out-of-the-box product and should not be used for human-facing interactions.
- Tucano models are for **the Portuguese language only** and are unsuitable for text generation tasks in other languages.
- Tucano models have **not been fine-tuned** for downstream tasks.
## Basic usage
Using the `pipeline`:
```python
from transformers import pipeline
generator = pipeline("text-generation", model="TucanoBR/Tucano-630m")
completions = generator("A floresta da Amazônia é conhecida por sua", num_return_sequences=2, max_new_tokens=100)
for comp in completions:
print(f"🤖 {comp['generated_text']}")
```
Using the `AutoTokenizer` and `AutoModelForCausalLM`:
```python
from transformers import GenerationConfig, TextGenerationPipeline, AutoTokenizer, AutoModelForCausalLM
import torch
# Specify the model and tokenizer
model_id = "TucanoBR/Tucano-630m"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
# Specify the generation parameters as you like
generation_config = GenerationConfig(
**{
"do_sample": True,
"max_new_tokens": 2048,
"renormalize_logits": True,
"repetition_penalty": 1.2,
"temperature": 0.1,
"top_k": 50,
"top_p": 1.0,
"use_cache": True,
}
)
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
generator = TextGenerationPipeline(model=model, task="text-generation", tokenizer=tokenizer, device=device)
# Generate text
prompt = "A floresta da Amazônia é conhecida por sua"
completion = generator(prompt, generation_config=generation_config)
print(completion[0]['generated_text'])
```
## Limitations
Like almost all other language models trained on large text datasets scraped from the web, the Tucano models show behavior that does not make them an out-of-the-box solution to many real-world applications, especially those requiring factual, reliable, and nontoxic text generation. Tucano models are all subject to the following:
- **Hallucinations:** Tucano models can produce content that can be mistaken as true facts, but are misleading or entirely false, i.e., hallucination.
- **Biases and Toxicity:** Tucano models inherit the social and historical stereotypes from the data used to train them. Given these biases, the model can produce toxic content, i.e., harmful, offensive, or detrimental to individuals, groups, or communities.
- **Unreliable Code:** Tucano models may produce incorrect code snippets and statements. These code generations should not be treated as suggestions or accurate solutions.
- **Language Limitations:** Tucano models are primarily designed to interact with Portuguese. Other languages might challenge its comprehension, leading to potential misinterpretations or errors in response.
- **Repetition and Verbosity:** Tucano models may get stuck on repetition loops (especially if the repetition penalty during generations is set to a meager value) or produce verbose responses unrelated to the prompt it was given.
Hence, even though our models are released with a permissive license, we urge users to perform their risk analysis on them if they intend to use them for real-world applications.
## Evaluations
The table below compares our models against several Portuguese and multilingual language models on the evaluation harness used in our study. More information on it can be found [here](https://github.com/Nkluge-correa/Tucano/tree/main/evaluations/README.md). To learn more about our evaluation harness selection, [read our preprint](https://arxiv.org/abs/2411.07854).
| | Average | Calame-PT | Lambada-PT | ARC-PT | HellaSwag-PT |
|-----------------|---------|-----------|------------|--------|--------------|
| Llama-3.2-3B | 52 | 58.43 | 49.1 | 43.25 | 57.2 |
| Granite-3.0-2b | 51.63 | 56.36 | 47.55 | 42.56 | 60.05 |
| **Tucano-2b4** | 43.58 | 59.06 | 37.67 | 30.43 | 47.17 |
| Llama-3.2-1B | 42.95 | 51.83 | 41.02 | 33.5 | 45.44 |
| **Tucano-1b1** | 41.55 | 58.24 | 34.7 | 30.43 | 42.84 |
| Gemma-2b | 40.38 | 51.16 | 39.88 | 37.95 | 32.53 |
| Bloom-1b7 | 40.37 | 55.64 | 31.98 | 30.34 | 43.52 |
| **Tucano-630m** | 39.5 | 56.55 | 33.13 | 28.89 | 39.41 |
| Gemma-2-2b | 39.21 | 56.7 | 47.1 | 24.19 | 28.85 |
| Bloom-1b1 | 38.18 | 52.94 | 30.22 | 29.83 | 39.74 |
| GlórIA-1b3 | 36.05 | 52.79 | 27.71 | 26.67 | 37.04 |
| **Tucano-160m** | 35.14 | 52.31 | 28.16 | 27.01 | 33.07 |
| Xglm-564m | 34.55 | 50.58 | 27.42 | 25.56 | 34.64 |
| Bloom-560m | 34.32 | 49.95 | 25.44 | 24.74 | 37.15 |
| TTL-460m | 33.78 | 49.42 | 23.29 | 29.4 | 33 |
| mGPT-1b3 | 31.81 | 47.14 | 29.92 | 23.81 | 26.37 |
| TTL-160m | 30.78 | 46.72 | 20.98 | 26.15 | 29.29 |
| Lola-v1 | 30.19 | 26.4 | 18.32 | 30.42 | 45.61 |
| GPorTuguese | 28.92 | 40.61 | 22.98 | 22.48 | 29.62 |
## Cite as 🤗
```latex
@misc{correa2024tucanoadvancingneuraltext,
title={{Tucano: Advancing Neural Text Generation for Portuguese}},
author={Corr{\^e}a, Nicholas Kluge and Sen, Aniket and Falk, Sophia and Fatimah, Shiza},
year={2024},
eprint={2411.07854},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2411.07854},
}
@article{correa2025tucanoadvancingneuraltext,
title={{Tucano: Advancing Neural Text Generation for Portuguese}},
author={Corr{\^e}a, Nicholas Kluge and Sen, Aniket and Falk, Sophia and Fatimah, Shiza},
journal={Patterns},
publisher={Elsevier},
year={2025},
doi={10.1016/j.patter.2025.101325},
url={https://doi.org/10.1016/j.patter.2025.101325},
issn={2666-3899}
}
```
## Aknowlegments
We gratefully acknowledge the granted access to the [Marvin cluster](https://www.hpc.uni-bonn.de/en/systems/marvin) hosted by [University of Bonn](https://www.uni-bonn.de/en) along with the support provided by its High Performance Computing \& Analytics Lab.
## License
Tucano is licensed under the Apache License, Version 2.0. For more details, see the [LICENSE](LICENSE) file.

29
config.json Normal file
View File

@@ -0,0 +1,29 @@
{
"architectures": [
"LlamaForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"bos_token_id": 1,
"eos_token_id": 2,
"hidden_act": "silu",
"hidden_size": 2048,
"initializer_range": 0.02,
"intermediate_size": 4096,
"max_position_embeddings": 2048,
"mlp_bias": false,
"model_type": "llama",
"num_attention_heads": 16,
"num_hidden_layers": 14,
"num_key_value_heads": 4,
"pad_token_id": 3,
"pretraining_tp": 1,
"rms_norm_eps": 1e-05,
"rope_scaling": null,
"rope_theta": 10000.0,
"tie_word_embeddings": false,
"torch_dtype": "bfloat16",
"transformers_version": "4.44.2",
"use_cache": false,
"vocab_size": 32000
}

21
emissions-630m.csv Normal file
View File

@@ -0,0 +1,21 @@
timestamp,project_name,run_id,experiment_id,duration,emissions,emissions_rate,cpu_power,gpu_power,ram_power,cpu_energy,gpu_energy,ram_energy,energy_consumed,country_name,country_iso_code,region,cloud_provider,cloud_region,os,python_version,codecarbon_version,cpu_count,cpu_model,gpu_count,gpu_model,longitude,latitude,ram_total_size,tracking_mode,on_cloud,pue
2024-09-12T07:19:10,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,30801.511537317187,8.77193692533219,0.0002847891706452,112.5,516.8676360980804,731.2500000000001,0.962545934552298,15.813424588507305,6.250507821427029,23.02647834448665,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-12T15:52:14,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,61585.427419372834,17.534579209540887,0.0002847196154073,112.5,1052.6424699677314,731.2500000000001,1.9245420306554293,31.606564960787352,12.497451112090364,46.02855810353297,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-13T00:25:55,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,92406.22001107877,26.30735243875888,0.0002846924420845,112.5,393.35233521820544,731.2500000000001,2.8876905018206704,47.41767368271968,18.751867574900587,69.05723175944054,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-13T08:59:47,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,123238.19332190044,35.0729853645544,0.000284595095231,112.5,1154.450016406809,731.2500000000001,3.851188406325755,63.20734725972625,25.008626335666644,92.0671620017178,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-13T17:33:45,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,154076.50535126217,43.84926320587744,0.0002845940924342,112.5,905.9687542284894,731.2500000000001,4.814884328209922,79.02357320825243,31.266577785437885,115.10503532189904,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-14T02:07:41,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,184912.42551203724,52.61133888625861,0.0002845203005724,112.5,374.674260276227,731.2500000000001,5.778505547274503,94.80310286075496,37.52401932857379,138.1056277366022,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-14T10:42:03,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,215774.76858364049,61.39108040011239,0.000284514639052,112.5,1049.8499813842266,731.2500000000001,6.742952463824703,110.62280815595352,43.78683263422639,161.15259325400285,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-14T19:16:41,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,246652.853896725,70.1854396980358,0.0002845515005774,112.5,375.18990302115407,731.2500000000001,7.707891367487627,126.4771701766552,50.05286915026996,184.2379306944108,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-15T03:51:20,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,277531.2332985895,78.9526726326515,0.0002844821164604,112.5,1087.7239603233547,731.2500000000001,8.672839430526004,142.260153118587,56.319068436980224,207.2520609860913,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-15T12:26:08,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,308419.1823604675,87.73140948877572,0.0002844551004166,112.5,1243.7650088493635,731.2500000000001,9.638086524195332,158.0712049257517,62.58709781052318,230.2963892604692,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-15T21:01:07,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,339318.5128539754,96.5130025554611,0.0002844318800754,112.5,1152.6308692924783,731.2500000000001,10.603689331855769,173.88708756122546,68.8574382413497,253.34821513443,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-16T05:36:02,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,370213.8572272174,105.2934548114082,0.0002844125165924,112.5,380.3651700910452,731.2500000000001,11.569167545349432,189.7008835575299,75.12699525860786,276.3970463614863,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-16T14:11:03,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,401115.03156210296,114.07249417973078,0.0002843884801212,112.5,399.4234922042149,731.2500000000001,12.534827900505064,205.5096126161697,81.39772821867304,299.4421687353479,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-16T22:46:14,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,432025.6126104202,122.84614235499134,0.0002843492116421,112.5,1398.9791433883695,731.2500000000001,13.500782278108286,221.3020071128529,87.6703497480122,322.4731391389719,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-17T07:21:34,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,462946.07641812414,131.6298478760021,0.0002843308423616,112.5,375.6056735806303,731.2500000000001,14.467045509291449,237.1184716929589,93.9449930379469,345.5305102401945,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-17T15:57:04,Tucano,c15d456f-f685-49e6-9db4-b5dd48f7d659,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,493875.601229229,140.41353024347669,0.0002843095101154,112.5,369.1125834489235,731.2500000000001,15.43359187422087,252.93278387578744,100.22144481299878,368.5878205630048,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-18T02:40:59,Tucano,e468475c-3f05-48e4-b1ad-183e2773aa97,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,31673.61351816822,8.87530403219512,0.0002802112877681,112.5,856.0078964343256,731.2500000000001,0.9897991479310724,15.88044181573207,6.427577732215862,23.29781869587904,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-18T11:13:52,Tucano,e468475c-3f05-48e4-b1ad-183e2773aa97,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,62445.83057298511,17.644087336759142,0.0002825502867823,112.5,1399.6450862138229,731.2500000000001,1.951429735048554,31.69242793031092,12.672161068750208,46.31601873410984,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-18T19:47:20,Tucano,e468475c-3f05-48e4-b1ad-183e2773aa97,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,93253.85405816232,26.413565227069306,0.0002832436846051,112.5,1225.1466791936357,731.2500000000001,2.9141792461442444,47.49786654715166,18.923996278023864,69.33604207131987,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
2024-09-19T03:54:31,Tucano,e468475c-3f05-48e4-b1ad-183e2773aa97,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,122485.39409139566,34.73321586604593,0.00028357026667301117,112.5,1836.7208944336992,731.2500000000001,3.827663684068934,62.491690465256795,24.855907344429106,91.1752614937549,Germany,DEU,north rhine-westphalia,,,Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34,3.11.3,2.7.1,256,AMD EPYC 7713 64-Core Processor,4,4 x NVIDIA A100-SXM4-80GB,7.0932,50.7263,1950,machine,N,1.0
1 timestamp project_name run_id experiment_id duration emissions emissions_rate cpu_power gpu_power ram_power cpu_energy gpu_energy ram_energy energy_consumed country_name country_iso_code region cloud_provider cloud_region os python_version codecarbon_version cpu_count cpu_model gpu_count gpu_model longitude latitude ram_total_size tracking_mode on_cloud pue
2 2024-09-12T07:19:10 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 30801.511537317187 8.77193692533219 0.0002847891706452 112.5 516.8676360980804 731.2500000000001 0.962545934552298 15.813424588507305 6.250507821427029 23.02647834448665 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
3 2024-09-12T15:52:14 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 61585.427419372834 17.534579209540887 0.0002847196154073 112.5 1052.6424699677314 731.2500000000001 1.9245420306554293 31.606564960787352 12.497451112090364 46.02855810353297 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
4 2024-09-13T00:25:55 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 92406.22001107877 26.30735243875888 0.0002846924420845 112.5 393.35233521820544 731.2500000000001 2.8876905018206704 47.41767368271968 18.751867574900587 69.05723175944054 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
5 2024-09-13T08:59:47 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 123238.19332190044 35.0729853645544 0.000284595095231 112.5 1154.450016406809 731.2500000000001 3.851188406325755 63.20734725972625 25.008626335666644 92.0671620017178 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
6 2024-09-13T17:33:45 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 154076.50535126217 43.84926320587744 0.0002845940924342 112.5 905.9687542284894 731.2500000000001 4.814884328209922 79.02357320825243 31.266577785437885 115.10503532189904 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
7 2024-09-14T02:07:41 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 184912.42551203724 52.61133888625861 0.0002845203005724 112.5 374.674260276227 731.2500000000001 5.778505547274503 94.80310286075496 37.52401932857379 138.1056277366022 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
8 2024-09-14T10:42:03 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 215774.76858364049 61.39108040011239 0.000284514639052 112.5 1049.8499813842266 731.2500000000001 6.742952463824703 110.62280815595352 43.78683263422639 161.15259325400285 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
9 2024-09-14T19:16:41 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 246652.853896725 70.1854396980358 0.0002845515005774 112.5 375.18990302115407 731.2500000000001 7.707891367487627 126.4771701766552 50.05286915026996 184.2379306944108 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
10 2024-09-15T03:51:20 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 277531.2332985895 78.9526726326515 0.0002844821164604 112.5 1087.7239603233547 731.2500000000001 8.672839430526004 142.260153118587 56.319068436980224 207.2520609860913 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
11 2024-09-15T12:26:08 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 308419.1823604675 87.73140948877572 0.0002844551004166 112.5 1243.7650088493635 731.2500000000001 9.638086524195332 158.0712049257517 62.58709781052318 230.2963892604692 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
12 2024-09-15T21:01:07 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 339318.5128539754 96.5130025554611 0.0002844318800754 112.5 1152.6308692924783 731.2500000000001 10.603689331855769 173.88708756122546 68.8574382413497 253.34821513443 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
13 2024-09-16T05:36:02 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 370213.8572272174 105.2934548114082 0.0002844125165924 112.5 380.3651700910452 731.2500000000001 11.569167545349432 189.7008835575299 75.12699525860786 276.3970463614863 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
14 2024-09-16T14:11:03 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 401115.03156210296 114.07249417973078 0.0002843884801212 112.5 399.4234922042149 731.2500000000001 12.534827900505064 205.5096126161697 81.39772821867304 299.4421687353479 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
15 2024-09-16T22:46:14 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 432025.6126104202 122.84614235499134 0.0002843492116421 112.5 1398.9791433883695 731.2500000000001 13.500782278108286 221.3020071128529 87.6703497480122 322.4731391389719 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
16 2024-09-17T07:21:34 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 462946.07641812414 131.6298478760021 0.0002843308423616 112.5 375.6056735806303 731.2500000000001 14.467045509291449 237.1184716929589 93.9449930379469 345.5305102401945 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
17 2024-09-17T15:57:04 Tucano c15d456f-f685-49e6-9db4-b5dd48f7d659 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 493875.601229229 140.41353024347669 0.0002843095101154 112.5 369.1125834489235 731.2500000000001 15.43359187422087 252.93278387578744 100.22144481299878 368.5878205630048 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
18 2024-09-18T02:40:59 Tucano e468475c-3f05-48e4-b1ad-183e2773aa97 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 31673.61351816822 8.87530403219512 0.0002802112877681 112.5 856.0078964343256 731.2500000000001 0.9897991479310724 15.88044181573207 6.427577732215862 23.29781869587904 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
19 2024-09-18T11:13:52 Tucano e468475c-3f05-48e4-b1ad-183e2773aa97 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 62445.83057298511 17.644087336759142 0.0002825502867823 112.5 1399.6450862138229 731.2500000000001 1.951429735048554 31.69242793031092 12.672161068750208 46.31601873410984 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
20 2024-09-18T19:47:20 Tucano e468475c-3f05-48e4-b1ad-183e2773aa97 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 93253.85405816232 26.413565227069306 0.0002832436846051 112.5 1225.1466791936357 731.2500000000001 2.9141792461442444 47.49786654715166 18.923996278023864 69.33604207131987 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0
21 2024-09-19T03:54:31 Tucano e468475c-3f05-48e4-b1ad-183e2773aa97 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 122485.39409139566 34.73321586604593 0.00028357026667301117 112.5 1836.7208944336992 731.2500000000001 3.827663684068934 62.491690465256795 24.855907344429106 91.1752614937549 Germany DEU north rhine-westphalia Linux-5.14.0-284.30.1.el9_2.x86_64-x86_64-with-glibc2.34 3.11.3 2.7.1 256 AMD EPYC 7713 64-Core Processor 4 4 x NVIDIA A100-SXM4-80GB 7.0932 50.7263 1950 machine N 1.0

15
evals.yaml Normal file
View File

@@ -0,0 +1,15 @@
arc_pt: 28.89
assin2_rte: 57.79
assin2_sts: 1.99
bluex: 24.76
calame_pt: 56.55
enem: 19.17
faquad_nli: 43.97
hatebr: 53.73
hatespeech_pt: 30.01
hellaswag_pt: 39.41
lambada_pt: 33.13
oab_exams: 25.28
step: 400000
truthfulqa: 42.76
tweet_br: 20.73

3
flax_model.msgpack Normal file
View File

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

14
generation_config.json Normal file
View File

@@ -0,0 +1,14 @@
{
"bos_token_id": 1,
"eos_token_id": 2,
"pad_token_id": 3,
"do_sample": true,
"max_new_tokens": 1024,
"renormalize_logits": true,
"repetition_penalty": 1.2,
"temperature": 0.1,
"top_k": 50,
"top_p": 1.0,
"use_cache": true,
"transformers_version": "4.42.3"
}

BIN
logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

3
model.safetensors Normal file
View File

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

3
pytorch_model.bin Normal file
View File

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

37
results-multilingual.json Normal file
View File

@@ -0,0 +1,37 @@
{
"results": {
"arc_pt": {
"acc": 0.24444444444444444,
"acc_stderr": 0.012569442967524474,
"acc_norm": 0.28888888888888886,
"acc_norm_stderr": 0.013256439556126792
},
"hellaswag_pt": {
"acc": 0.3326470906923827,
"acc_stderr": 0.004904738424240269,
"acc_norm": 0.39408386607433094,
"acc_norm_stderr": 0.00508682495262388
},
"truthfulqa_pt": {
"mc1": 0.23604060913705585,
"mc1_stderr": 0.015137046117152837,
"mc2": 0.42762827969970946,
"mc2_stderr": 0.014911010832660198
}
},
"versions": {
"arc_pt": 0,
"hellaswag_pt": 1,
"truthfulqa_pt": 1
},
"config": {
"model": "hf-auto",
"model_args": "pretrained=/lustre/mlnvme/data/asen_hpc-mula/checkpoints-llama/slurm_job_17032104/step_400000",
"batch_size": 1,
"device": "cuda:0",
"no_cache": false,
"limit": null,
"bootstrap_iters": 100000,
"description_dict": {}
}
}

1303
results-pt.json Normal file

File diff suppressed because it is too large Load Diff

30
special_tokens_map.json Normal file
View File

@@ -0,0 +1,30 @@
{
"bos_token": {
"content": "<s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"eos_token": {
"content": "</s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"pad_token": {
"content": "<pad>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
},
"unk_token": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false
}
}

63120
tokenizer.json Normal file

File diff suppressed because it is too large Load Diff

54
tokenizer_config.json Normal file
View File

@@ -0,0 +1,54 @@
{
"add_bos_token": false,
"add_eos_token": false,
"add_prefix_space": null,
"added_tokens_decoder": {
"0": {
"content": "<unk>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"1": {
"content": "<s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"2": {
"content": "</s>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
},
"3": {
"content": "<pad>",
"lstrip": false,
"normalized": false,
"rstrip": false,
"single_word": false,
"special": true
}
},
"bos_token": "<s>",
"bos_token_id": 1,
"clean_up_tokenization_spaces": false,
"eos_token": "</s>",
"eos_token_id": 2,
"legacy": false,
"model_max_length": 2048,
"pad_token": "<pad>",
"pad_token_id": 3,
"padding_side": "right",
"sp_model_kwargs": {},
"tokenizer_class": "LlamaTokenizer",
"unk_token": "<unk>",
"unk_token_id": 0,
"use_default_system_prompt": false
}

View File

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

View File

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