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

Model: TucanoBR/Tucano-160m
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-06-12 13:44:40 +08:00
commit dd5d91d8f7
18 changed files with 65267 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

17
EVALS-160m.csv Normal file
View File

@@ -0,0 +1,17 @@
step,enem,bluex,oab_exams,assin2_rte,assin2_sts,faquad_nli,hatebr,hatespeech_pt,tweet_br,calame_pt,arc_pt,hellaswag_pt,truthfulqa,lambada_pt
20000,19.73,20.72,24.28,42.64,4.41,43.97,44.6,49.57,15.07,45.95,25.13,30.41,41.2,21.99
40000,19.31,21.55,25.19,49.16,0.0,43.97,44.89,48.85,15.91,47.11,25.81,30.9,41.33,22.61
60000,18.96,19.47,24.51,38.23,3.82,49.93,51.77,52.37,20.72,47.78,26.58,31.2,41.34,21.41
80000,19.31,23.92,12.35,41.1,6.51,43.97,45.3,44.38,21.08,49.47,25.38,31.4,43.55,23.91
100000,20.36,24.34,24.15,33.42,1.55,43.97,34.58,23.17,26.42,48.94,25.9,31.96,42.29,24.45
120000,20.01,23.64,25.56,33.33,2.16,44.12,33.49,22.99,21.61,49.86,25.38,32.16,41.97,25.64
140000,20.36,20.72,23.74,33.33,1.57,44.23,34.39,23.17,30.22,50.0,26.67,32.17,43.75,22.88
160000,18.19,20.72,22.46,33.33,3.42,43.63,33.33,22.99,19.67,51.54,25.21,32.71,42.78,26.0
180000,19.52,20.03,23.96,33.33,10.83,43.97,33.33,22.99,16.7,51.4,26.24,32.73,41.75,26.99
200000,19.1,20.58,24.6,33.33,7.45,43.97,33.33,22.99,24.22,51.4,26.32,32.39,41.62,28.59
220000,19.45,23.5,25.19,33.33,5.65,43.97,33.33,22.99,18.7,52.55,26.41,32.74,42.44,28.43
240000,19.73,22.25,25.69,56.57,16.72,43.97,45.65,22.99,19.13,52.17,27.01,33.06,41.9,29.65
260000,19.45,20.31,25.19,33.42,17.28,43.97,34.49,22.99,23.82,52.31,27.01,33.16,41.53,27.5
280000,19.8,22.11,25.65,33.33,9.42,43.97,33.49,22.99,25.77,52.46,27.44,32.94,41.5,28.33
300000,20.71,20.45,25.42,33.7,2.23,43.97,33.33,22.99,21.99,52.17,26.92,33.17,41.43,28.35
320000,19.03,22.11,25.1,33.51,11.02,43.97,36.56,22.99,16.86,52.31,27.01,33.07,41.53,28.16
1 step enem bluex oab_exams assin2_rte assin2_sts faquad_nli hatebr hatespeech_pt tweet_br calame_pt arc_pt hellaswag_pt truthfulqa lambada_pt
2 20000 19.73 20.72 24.28 42.64 4.41 43.97 44.6 49.57 15.07 45.95 25.13 30.41 41.2 21.99
3 40000 19.31 21.55 25.19 49.16 0.0 43.97 44.89 48.85 15.91 47.11 25.81 30.9 41.33 22.61
4 60000 18.96 19.47 24.51 38.23 3.82 49.93 51.77 52.37 20.72 47.78 26.58 31.2 41.34 21.41
5 80000 19.31 23.92 12.35 41.1 6.51 43.97 45.3 44.38 21.08 49.47 25.38 31.4 43.55 23.91
6 100000 20.36 24.34 24.15 33.42 1.55 43.97 34.58 23.17 26.42 48.94 25.9 31.96 42.29 24.45
7 120000 20.01 23.64 25.56 33.33 2.16 44.12 33.49 22.99 21.61 49.86 25.38 32.16 41.97 25.64
8 140000 20.36 20.72 23.74 33.33 1.57 44.23 34.39 23.17 30.22 50.0 26.67 32.17 43.75 22.88
9 160000 18.19 20.72 22.46 33.33 3.42 43.63 33.33 22.99 19.67 51.54 25.21 32.71 42.78 26.0
10 180000 19.52 20.03 23.96 33.33 10.83 43.97 33.33 22.99 16.7 51.4 26.24 32.73 41.75 26.99
11 200000 19.1 20.58 24.6 33.33 7.45 43.97 33.33 22.99 24.22 51.4 26.32 32.39 41.62 28.59
12 220000 19.45 23.5 25.19 33.33 5.65 43.97 33.33 22.99 18.7 52.55 26.41 32.74 42.44 28.43
13 240000 19.73 22.25 25.69 56.57 16.72 43.97 45.65 22.99 19.13 52.17 27.01 33.06 41.9 29.65
14 260000 19.45 20.31 25.19 33.42 17.28 43.97 34.49 22.99 23.82 52.31 27.01 33.16 41.53 27.5
15 280000 19.8 22.11 25.65 33.33 9.42 43.97 33.49 22.99 25.77 52.46 27.44 32.94 41.5 28.33
16 300000 20.71 20.45 25.42 33.7 2.23 43.97 33.33 22.99 21.99 52.17 26.92 33.17 41.43 28.35
17 320000 19.03 22.11 25.1 33.51 11.02 43.97 36.56 22.99 16.86 52.31 27.01 33.07 41.53 28.16

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: 89730
source: CodeCarbon
training_type: pre-training
geographical_location: Germany
hardware_used: NVIDIA A100-SXM4-80GB
model-index:
- name: Tucano-160m
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: 52.31
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: 28.16
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.03
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: 22.11
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.1
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: 33.51
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: 11.02
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: 36.56
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: 22.99
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: 16.86
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: 27.01
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: 33.07
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: 41.53
name: bleurt
source:
url: https://github.com/nlp-uoregon/mlmm-evaluation
name: Evaluation Framework for Multilingual Large Language Models
---
# Tucano-160m
<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:** 162,417,408 parameters
- **Context length:** 2048 tokens
- **Dataset:** [TucanoBR/GigaVerbo](https://huggingface.co/datasets/TucanoBR/GigaVerbo)
- **Language:** Portuguese
- **Number of steps:** 320,000
- **GPU:** 8 NVIDIA A100-SXM4-80GB
- **Training time**: ~ 44 hours
- **Emissions:** 89.73 KgCO2 (Germany)
- **Total energy consumption:** 235.54 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-160m")
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-160m"
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": 768,
"initializer_range": 0.02,
"intermediate_size": 3072,
"max_position_embeddings": 2048,
"mlp_bias": false,
"model_type": "llama",
"num_attention_heads": 12,
"num_hidden_layers": 12,
"num_key_value_heads": 12,
"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
}

17
emissions-160m.csv Normal file
View File

@@ -0,0 +1,17 @@
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-11T23:24:45,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,9987.086277660914,2.805605804537631,0.0002809233570769,112.5,1498.693265795519,731.2500000000001,0.3120960286260816,5.025847470952527,2.026817767090588,7.364761266669198,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-12T02:11:04,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,19966.28417362459,5.6098372005331,0.000280965509243,112.5,424.9828885851893,731.2500000000001,0.6239455250542381,10.049943741337389,4.052025421974559,14.72591468836619,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-12T04:57:25,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,29946.504277782515,8.410886635710412,0.0002808637214444,112.5,1485.3734367308894,731.2500000000001,0.9358269782679856,15.06544557290232,6.077442859540839,22.078715410711148,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-12T07:43:44,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,39926.09819833841,11.218150526404722,0.0002809728731988,112.5,1604.5112837904096,731.2500000000001,1.2476888555139312,20.097417194587507,8.102723130643342,29.447829180744776,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-12T10:30:03,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,49905.32045261655,14.026741764674725,0.0002810670613365,112.5,1631.8561742603365,731.2500000000001,1.559539117559268,25.132948467175908,10.1279396752063,36.820427259941525,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-12T13:16:18,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,59880.03522476461,16.838954298275087,0.0002812114962035,112.5,1642.6855808207963,731.2500000000001,1.8712485173892075,30.179035709042523,12.15224707236115,44.20253129879272,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-12T16:02:41,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,69863.41171585768,19.641388354259472,0.0002811398394648,112.5,1492.5300452621138,731.2500000000001,2.183228544380194,35.19741614429927,14.17832198479349,51.55896667347282,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-12T18:49:05,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,79847.12391428743,22.44542055941217,0.0002811049347689,112.5,1643.100841390342,731.2500000000001,2.495219174664265,40.21991837674227,16.204459664533253,58.919597215939554,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-12T21:35:23,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,89825.39422136918,25.25362847916932,0.0002811413041721,112.5,1129.1051262483695,731.2500000000001,2.807039698687699,45.25464607035448,18.22950330870923,66.2911890777512,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:21:44,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,99806.25174198952,28.05894449092799,0.0002811341374031,112.5,1573.6267538554223,731.2500000000001,3.1189410599722174,50.28119034297552,20.25505823067363,73.65518963362118,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-13T03:08:04,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,109785.82887055352,30.862013906454955,0.0002811110889625,112.5,1615.5619375624683,731.2500000000001,3.430802410151548,55.30213987445421,22.280350552918943,81.01329283752449,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-13T05:54:23,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,119764.83038370124,33.667215391316255,0.0002811110347123,112.5,677.5288077977726,731.2500000000001,3.7426457692827664,60.32882150662965,24.30552548249765,88.37699275840991,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:40:47,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,129748.47413625196,36.46963220891016,0.0002810794689624,112.5,1599.47338675909,731.2500000000001,4.054634211308178,65.34709879541492,26.33164987530932,95.7333828820322,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-13T11:27:04,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,139725.72096599173,39.276100897587824,0.0002810942797507,112.5,1601.044838449617,731.2500000000001,4.366422715957351,70.37750755112762,28.35647896664109,103.10040923372574,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-13T14:13:20,Tucano,414e4469-bad9-47b5-87fc-9268838e6ead,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,149701.45989404153,42.08319016110837,0.000281114093282,112.5,1615.6679064209104,731.2500000000001,4.678164160714909,75.40991211954804,30.38098832430074,110.46906460456324,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-13T20:07:25,Tucano,2e18b64c-361f-4a35-9971-bec10551dcdf,5b0fa12a-3dd7-45bb-9766-cc326314d9f1,10369.677265450358,2.781795360972202,0.0002682624820196,112.5,1516.8945629069672,731.2500000000001,0.3240519341113975,4.8737174770264176,2.104489050529591,7.302258461667415,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-11T23:24:45 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 9987.086277660914 2.805605804537631 0.0002809233570769 112.5 1498.693265795519 731.2500000000001 0.3120960286260816 5.025847470952527 2.026817767090588 7.364761266669198 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-12T02:11:04 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 19966.28417362459 5.6098372005331 0.000280965509243 112.5 424.9828885851893 731.2500000000001 0.6239455250542381 10.049943741337389 4.052025421974559 14.72591468836619 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-12T04:57:25 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 29946.504277782515 8.410886635710412 0.0002808637214444 112.5 1485.3734367308894 731.2500000000001 0.9358269782679856 15.06544557290232 6.077442859540839 22.078715410711148 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-12T07:43:44 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 39926.09819833841 11.218150526404722 0.0002809728731988 112.5 1604.5112837904096 731.2500000000001 1.2476888555139312 20.097417194587507 8.102723130643342 29.447829180744776 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-12T10:30:03 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 49905.32045261655 14.026741764674725 0.0002810670613365 112.5 1631.8561742603365 731.2500000000001 1.559539117559268 25.132948467175908 10.1279396752063 36.820427259941525 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-12T13:16:18 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 59880.03522476461 16.838954298275087 0.0002812114962035 112.5 1642.6855808207963 731.2500000000001 1.8712485173892075 30.179035709042523 12.15224707236115 44.20253129879272 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-12T16:02:41 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 69863.41171585768 19.641388354259472 0.0002811398394648 112.5 1492.5300452621138 731.2500000000001 2.183228544380194 35.19741614429927 14.17832198479349 51.55896667347282 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-12T18:49:05 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 79847.12391428743 22.44542055941217 0.0002811049347689 112.5 1643.100841390342 731.2500000000001 2.495219174664265 40.21991837674227 16.204459664533253 58.919597215939554 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-12T21:35:23 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 89825.39422136918 25.25362847916932 0.0002811413041721 112.5 1129.1051262483695 731.2500000000001 2.807039698687699 45.25464607035448 18.22950330870923 66.2911890777512 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-13T00:21:44 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 99806.25174198952 28.05894449092799 0.0002811341374031 112.5 1573.6267538554223 731.2500000000001 3.1189410599722174 50.28119034297552 20.25505823067363 73.65518963362118 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-13T03:08:04 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 109785.82887055352 30.862013906454955 0.0002811110889625 112.5 1615.5619375624683 731.2500000000001 3.430802410151548 55.30213987445421 22.280350552918943 81.01329283752449 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-13T05:54:23 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 119764.83038370124 33.667215391316255 0.0002811110347123 112.5 677.5288077977726 731.2500000000001 3.7426457692827664 60.32882150662965 24.30552548249765 88.37699275840991 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-13T08:40:47 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 129748.47413625196 36.46963220891016 0.0002810794689624 112.5 1599.47338675909 731.2500000000001 4.054634211308178 65.34709879541492 26.33164987530932 95.7333828820322 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-13T11:27:04 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 139725.72096599173 39.276100897587824 0.0002810942797507 112.5 1601.044838449617 731.2500000000001 4.366422715957351 70.37750755112762 28.35647896664109 103.10040923372574 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-13T14:13:20 Tucano 414e4469-bad9-47b5-87fc-9268838e6ead 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 149701.45989404153 42.08319016110837 0.000281114093282 112.5 1615.6679064209104 731.2500000000001 4.678164160714909 75.40991211954804 30.38098832430074 110.46906460456324 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-13T20:07:25 Tucano 2e18b64c-361f-4a35-9971-bec10551dcdf 5b0fa12a-3dd7-45bb-9766-cc326314d9f1 10369.677265450358 2.781795360972202 0.0002682624820196 112.5 1516.8945629069672 731.2500000000001 0.3240519341113975 4.8737174770264176 2.104489050529591 7.302258461667415 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: 27.01
assin2_rte: 33.51
assin2_sts: 11.02
bluex: 22.11
calame_pt: 52.31
enem: 19.03
faquad_nli: 43.97
hatebr: 36.56
hatespeech_pt: 22.99
hellaswag_pt: 33.07
lambada_pt: 28.16
oab_exams: 25.1
step: 320000
truthfulqa: 41.53
tweet_br: 16.86

3
flax_model.msgpack Normal file
View File

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

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:02fd7168a2ccaf797de9ffc43161bfe0d34193eafaf07db6aac7aa492bedc661
size 324847240

3
pytorch_model.bin Normal file
View File

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

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:c1c941c296bad6f868327df538d4403dfcdfe4435aa479916b7adaaee4f86fff
size 7359649

View File

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