Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/README.md +209 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/adapter_config.json +46 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/adapter_model.safetensors +3 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/chat_template.jinja +337 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/optimizer.pt +3 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/rng_state.pth +3 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/scaler.pt +3 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/scheduler.pt +3 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/special_tokens_map.json +30 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/tokenizer.json +3 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/tokenizer_config.json +0 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/trainer_state.json +55 -0
- apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/training_args.bin +3 -0
.gitattributes
CHANGED
|
@@ -121,3 +121,4 @@ apertus/combined/params_training.lr=1e-4_training=default/checkpoint-139/tokeniz
|
|
| 121 |
apertus/combined/params_training.lr=1e-4_training=default/checkpoint-278/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 122 |
apertus/combined/params_training.lr=1e-4_training=default/checkpoint-417/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 123 |
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-556/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 121 |
apertus/combined/params_training.lr=1e-4_training=default/checkpoint-278/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 122 |
apertus/combined/params_training.lr=1e-4_training=default/checkpoint-417/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 123 |
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-556/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 124 |
+
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/README.md
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: swiss-ai/Apertus-8B-Instruct-2509
|
| 3 |
+
library_name: peft
|
| 4 |
+
pipeline_tag: text-generation
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:swiss-ai/Apertus-8B-Instruct-2509
|
| 7 |
+
- lora
|
| 8 |
+
- sft
|
| 9 |
+
- transformers
|
| 10 |
+
- trl
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# Model Card for Model ID
|
| 14 |
+
|
| 15 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
## Model Details
|
| 20 |
+
|
| 21 |
+
### Model Description
|
| 22 |
+
|
| 23 |
+
<!-- Provide a longer summary of what this model is. -->
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
- **Developed by:** [More Information Needed]
|
| 28 |
+
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
+
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
+
- **Model type:** [More Information Needed]
|
| 31 |
+
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
+
- **License:** [More Information Needed]
|
| 33 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
| 34 |
+
|
| 35 |
+
### Model Sources [optional]
|
| 36 |
+
|
| 37 |
+
<!-- Provide the basic links for the model. -->
|
| 38 |
+
|
| 39 |
+
- **Repository:** [More Information Needed]
|
| 40 |
+
- **Paper [optional]:** [More Information Needed]
|
| 41 |
+
- **Demo [optional]:** [More Information Needed]
|
| 42 |
+
|
| 43 |
+
## Uses
|
| 44 |
+
|
| 45 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 46 |
+
|
| 47 |
+
### Direct Use
|
| 48 |
+
|
| 49 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 50 |
+
|
| 51 |
+
[More Information Needed]
|
| 52 |
+
|
| 53 |
+
### Downstream Use [optional]
|
| 54 |
+
|
| 55 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 56 |
+
|
| 57 |
+
[More Information Needed]
|
| 58 |
+
|
| 59 |
+
### Out-of-Scope Use
|
| 60 |
+
|
| 61 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 62 |
+
|
| 63 |
+
[More Information Needed]
|
| 64 |
+
|
| 65 |
+
## Bias, Risks, and Limitations
|
| 66 |
+
|
| 67 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 68 |
+
|
| 69 |
+
[More Information Needed]
|
| 70 |
+
|
| 71 |
+
### Recommendations
|
| 72 |
+
|
| 73 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 74 |
+
|
| 75 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 76 |
+
|
| 77 |
+
## How to Get Started with the Model
|
| 78 |
+
|
| 79 |
+
Use the code below to get started with the model.
|
| 80 |
+
|
| 81 |
+
[More Information Needed]
|
| 82 |
+
|
| 83 |
+
## Training Details
|
| 84 |
+
|
| 85 |
+
### Training Data
|
| 86 |
+
|
| 87 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 88 |
+
|
| 89 |
+
[More Information Needed]
|
| 90 |
+
|
| 91 |
+
### Training Procedure
|
| 92 |
+
|
| 93 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 94 |
+
|
| 95 |
+
#### Preprocessing [optional]
|
| 96 |
+
|
| 97 |
+
[More Information Needed]
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
#### Training Hyperparameters
|
| 101 |
+
|
| 102 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 103 |
+
|
| 104 |
+
#### Speeds, Sizes, Times [optional]
|
| 105 |
+
|
| 106 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 107 |
+
|
| 108 |
+
[More Information Needed]
|
| 109 |
+
|
| 110 |
+
## Evaluation
|
| 111 |
+
|
| 112 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 113 |
+
|
| 114 |
+
### Testing Data, Factors & Metrics
|
| 115 |
+
|
| 116 |
+
#### Testing Data
|
| 117 |
+
|
| 118 |
+
<!-- This should link to a Dataset Card if possible. -->
|
| 119 |
+
|
| 120 |
+
[More Information Needed]
|
| 121 |
+
|
| 122 |
+
#### Factors
|
| 123 |
+
|
| 124 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 125 |
+
|
| 126 |
+
[More Information Needed]
|
| 127 |
+
|
| 128 |
+
#### Metrics
|
| 129 |
+
|
| 130 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 131 |
+
|
| 132 |
+
[More Information Needed]
|
| 133 |
+
|
| 134 |
+
### Results
|
| 135 |
+
|
| 136 |
+
[More Information Needed]
|
| 137 |
+
|
| 138 |
+
#### Summary
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
## Model Examination [optional]
|
| 143 |
+
|
| 144 |
+
<!-- Relevant interpretability work for the model goes here -->
|
| 145 |
+
|
| 146 |
+
[More Information Needed]
|
| 147 |
+
|
| 148 |
+
## Environmental Impact
|
| 149 |
+
|
| 150 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 151 |
+
|
| 152 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 153 |
+
|
| 154 |
+
- **Hardware Type:** [More Information Needed]
|
| 155 |
+
- **Hours used:** [More Information Needed]
|
| 156 |
+
- **Cloud Provider:** [More Information Needed]
|
| 157 |
+
- **Compute Region:** [More Information Needed]
|
| 158 |
+
- **Carbon Emitted:** [More Information Needed]
|
| 159 |
+
|
| 160 |
+
## Technical Specifications [optional]
|
| 161 |
+
|
| 162 |
+
### Model Architecture and Objective
|
| 163 |
+
|
| 164 |
+
[More Information Needed]
|
| 165 |
+
|
| 166 |
+
### Compute Infrastructure
|
| 167 |
+
|
| 168 |
+
[More Information Needed]
|
| 169 |
+
|
| 170 |
+
#### Hardware
|
| 171 |
+
|
| 172 |
+
[More Information Needed]
|
| 173 |
+
|
| 174 |
+
#### Software
|
| 175 |
+
|
| 176 |
+
[More Information Needed]
|
| 177 |
+
|
| 178 |
+
## Citation [optional]
|
| 179 |
+
|
| 180 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 181 |
+
|
| 182 |
+
**BibTeX:**
|
| 183 |
+
|
| 184 |
+
[More Information Needed]
|
| 185 |
+
|
| 186 |
+
**APA:**
|
| 187 |
+
|
| 188 |
+
[More Information Needed]
|
| 189 |
+
|
| 190 |
+
## Glossary [optional]
|
| 191 |
+
|
| 192 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 193 |
+
|
| 194 |
+
[More Information Needed]
|
| 195 |
+
|
| 196 |
+
## More Information [optional]
|
| 197 |
+
|
| 198 |
+
[More Information Needed]
|
| 199 |
+
|
| 200 |
+
## Model Card Authors [optional]
|
| 201 |
+
|
| 202 |
+
[More Information Needed]
|
| 203 |
+
|
| 204 |
+
## Model Card Contact
|
| 205 |
+
|
| 206 |
+
[More Information Needed]
|
| 207 |
+
### Framework versions
|
| 208 |
+
|
| 209 |
+
- PEFT 0.18.1
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/adapter_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "swiss-ai/Apertus-8B-Instruct-2509",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 64,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.1,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"peft_version": "0.18.1",
|
| 27 |
+
"qalora_group_size": 16,
|
| 28 |
+
"r": 32,
|
| 29 |
+
"rank_pattern": {},
|
| 30 |
+
"revision": null,
|
| 31 |
+
"target_modules": [
|
| 32 |
+
"o_proj",
|
| 33 |
+
"k_proj",
|
| 34 |
+
"gate_proj",
|
| 35 |
+
"down_proj",
|
| 36 |
+
"v_proj",
|
| 37 |
+
"up_proj",
|
| 38 |
+
"q_proj"
|
| 39 |
+
],
|
| 40 |
+
"target_parameters": null,
|
| 41 |
+
"task_type": "CAUSAL_LM",
|
| 42 |
+
"trainable_token_indices": null,
|
| 43 |
+
"use_dora": false,
|
| 44 |
+
"use_qalora": false,
|
| 45 |
+
"use_rslora": false
|
| 46 |
+
}
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1eb5dea8f035bbb0bf961a896bd40179eb33c34c1101468cd62b5f8dd451354
|
| 3 |
+
size 318818912
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/chat_template.jinja
ADDED
|
@@ -0,0 +1,337 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- macro render_typescript_type(param_spec, required_params, is_nullable=false) -%}
|
| 2 |
+
{%- if param_spec.type == "array" -%}
|
| 3 |
+
{%- if param_spec['items'] -%}
|
| 4 |
+
{%- if param_spec['items']['type'] == "string" -%}
|
| 5 |
+
{{- "string[]" }}
|
| 6 |
+
{%- elif param_spec['items']['type'] == "number" -%}
|
| 7 |
+
{{- "number[]" }}
|
| 8 |
+
{%- elif param_spec['items']['type'] == "integer" -%}
|
| 9 |
+
{{- "number[]" }}
|
| 10 |
+
{%- elif param_spec['items']['type'] == "boolean" -%}
|
| 11 |
+
{{- "boolean[]" }}
|
| 12 |
+
{%- else -%}
|
| 13 |
+
{%- set inner_type = render_typescript_type(param_spec['items'], required_params) -%}
|
| 14 |
+
{%- if inner_type == "object | object" or inner_type|length > 50 -%}
|
| 15 |
+
{{- "any[]" }}
|
| 16 |
+
{%- else -%}
|
| 17 |
+
{{- inner_type + "[]" }}
|
| 18 |
+
{%- endif -%}
|
| 19 |
+
{%- endif -%}
|
| 20 |
+
{%- if param_spec.nullable -%}
|
| 21 |
+
{{- " | null" }}
|
| 22 |
+
{%- endif -%}
|
| 23 |
+
{%- else -%}
|
| 24 |
+
{{- "any[]" }}
|
| 25 |
+
{%- if param_spec.nullable -%}
|
| 26 |
+
{{- " | null" }}
|
| 27 |
+
{%- endif -%}
|
| 28 |
+
{%- endif -%}
|
| 29 |
+
{%- elif param_spec.type is defined and param_spec.type is iterable and param_spec.type is not string and param_spec.type is not mapping and param_spec.type[0] is defined -%}
|
| 30 |
+
{#- Handle array of types like ["object", "object"] from Union[dict, list] #}
|
| 31 |
+
{%- if param_spec.type | length > 1 -%}
|
| 32 |
+
{{- param_spec.type | join(" | ") }}
|
| 33 |
+
{%- else -%}
|
| 34 |
+
{{- param_spec.type[0] }}
|
| 35 |
+
{%- endif -%}
|
| 36 |
+
{%- elif param_spec.oneOf -%}
|
| 37 |
+
{#- Handle oneOf schemas - check for complex unions and fallback to any #}
|
| 38 |
+
{%- set has_object_variants = false -%}
|
| 39 |
+
{%- for variant in param_spec.oneOf -%}
|
| 40 |
+
{%- if variant.type == "object" -%}
|
| 41 |
+
{%- set has_object_variants = true -%}
|
| 42 |
+
{%- endif -%}
|
| 43 |
+
{%- endfor -%}
|
| 44 |
+
{%- if has_object_variants and param_spec.oneOf|length > 1 -%}
|
| 45 |
+
{{- "any" }}
|
| 46 |
+
{%- else -%}
|
| 47 |
+
{%- for variant in param_spec.oneOf -%}
|
| 48 |
+
{{- render_typescript_type(variant, required_params) -}}
|
| 49 |
+
{%- if variant.description %}
|
| 50 |
+
{{- "// " + variant.description }}
|
| 51 |
+
{%- endif -%}
|
| 52 |
+
{%- if variant.default is defined %}
|
| 53 |
+
{{ "// default: " + variant.default|tojson }}
|
| 54 |
+
{%- endif -%}
|
| 55 |
+
{%- if not loop.last %}
|
| 56 |
+
{{- " | " }}
|
| 57 |
+
{% endif -%}
|
| 58 |
+
{%- endfor -%}
|
| 59 |
+
{%- endif -%}
|
| 60 |
+
{%- elif param_spec.type == "string" -%}
|
| 61 |
+
{%- if param_spec.enum -%}
|
| 62 |
+
{{- '"' + param_spec.enum|join('" | "') + '"' -}}
|
| 63 |
+
{%- else -%}
|
| 64 |
+
{{- "string" }}
|
| 65 |
+
{%- if param_spec.nullable %}
|
| 66 |
+
{{- " | null" }}
|
| 67 |
+
{%- endif -%}
|
| 68 |
+
{%- endif -%}
|
| 69 |
+
{%- elif param_spec.type == "number" -%}
|
| 70 |
+
{{- "number" }}
|
| 71 |
+
{%- elif param_spec.type == "integer" -%}
|
| 72 |
+
{{- "number" }}
|
| 73 |
+
{%- elif param_spec.type == "boolean" -%}
|
| 74 |
+
{{- "boolean" }}
|
| 75 |
+
{%- elif param_spec.type == "object" -%}
|
| 76 |
+
{%- if param_spec.properties -%}
|
| 77 |
+
{{- "{\n" }}
|
| 78 |
+
{%- for prop_name, prop_spec in param_spec.properties.items() -%}
|
| 79 |
+
{{- prop_name -}}
|
| 80 |
+
{%- if prop_name not in (param_spec.required or []) -%}
|
| 81 |
+
{{- "?" }}
|
| 82 |
+
{%- endif -%}
|
| 83 |
+
{{- ": " }}
|
| 84 |
+
{{ render_typescript_type(prop_spec, param_spec.required or []) }}
|
| 85 |
+
{%- if not loop.last -%}
|
| 86 |
+
{{-", " }}
|
| 87 |
+
{%- endif -%}
|
| 88 |
+
{%- endfor -%}
|
| 89 |
+
{{- "}" }}
|
| 90 |
+
{%- else -%}
|
| 91 |
+
{{- "object" }}
|
| 92 |
+
{%- endif -%}
|
| 93 |
+
{%- else -%}
|
| 94 |
+
{{- "any" }}
|
| 95 |
+
{%- endif -%}
|
| 96 |
+
{%- endmacro -%}
|
| 97 |
+
|
| 98 |
+
{%- macro render_tools(tools) -%}
|
| 99 |
+
{%- for tool in tools %}
|
| 100 |
+
{{- "// " + tool.description + "\n" }}
|
| 101 |
+
{{- "type "+ tool.name + " = " }}
|
| 102 |
+
{%- if tool.parameters and tool.parameters.properties %}
|
| 103 |
+
{{- "(_: {\n" }}
|
| 104 |
+
{%- for param_name, param_spec in tool.parameters.properties.items() %}
|
| 105 |
+
{%- if param_spec.description %}
|
| 106 |
+
{{- "// " + param_spec.description + "\n" }}
|
| 107 |
+
{%- endif %}
|
| 108 |
+
{{- param_name }}
|
| 109 |
+
{%- if param_name not in (tool.parameters.required or []) -%}
|
| 110 |
+
{{- "?" }}
|
| 111 |
+
{%- endif -%}
|
| 112 |
+
{{- ": " }}
|
| 113 |
+
{{- render_typescript_type(param_spec, tool.parameters.required or []) }}
|
| 114 |
+
{%- if param_spec.default is defined -%}
|
| 115 |
+
{%- if param_spec.enum %}
|
| 116 |
+
{{- ", // default: " + param_spec.default }}
|
| 117 |
+
{%- elif param_spec.oneOf %}
|
| 118 |
+
{{- "// default: " + param_spec.default }}
|
| 119 |
+
{%- else %}
|
| 120 |
+
{{- ", // default: " + param_spec.default|tojson }}
|
| 121 |
+
{%- endif -%}
|
| 122 |
+
{%- endif -%}
|
| 123 |
+
{%- if not loop.last %}
|
| 124 |
+
{{- ",\n" }}
|
| 125 |
+
{%- else %}
|
| 126 |
+
{{- "\n" }}
|
| 127 |
+
{%- endif -%}
|
| 128 |
+
{%- endfor %}
|
| 129 |
+
{{- "}) => any;" }}
|
| 130 |
+
{%- else -%}
|
| 131 |
+
{{- "() => any;" }}
|
| 132 |
+
{%- endif -%}
|
| 133 |
+
{%- if not loop.last -%}
|
| 134 |
+
{{- "\n" }}
|
| 135 |
+
{%- endif -%}
|
| 136 |
+
{%- endfor %}
|
| 137 |
+
{%- endmacro -%}
|
| 138 |
+
|
| 139 |
+
{{ bos_token }}
|
| 140 |
+
|
| 141 |
+
{%- set system_token = '<|system_start|>' -%}
|
| 142 |
+
{%- set end_system_token = '<|system_end|>' -%}
|
| 143 |
+
{%- set developer_token = '<|developer_start|>' -%}
|
| 144 |
+
{%- set end_developer_token = '<|developer_end|>' -%}
|
| 145 |
+
{%- set user_token = '<|user_start|>' -%}
|
| 146 |
+
{%- set end_user_token = '<|user_end|>' -%}
|
| 147 |
+
{%- set assistant_token = '<|assistant_start|>' -%}
|
| 148 |
+
{%- set end_assistant_token = '<|assistant_end|>' -%}
|
| 149 |
+
{%- set inner_token = '<|inner_prefix|>' -%}
|
| 150 |
+
{%- set outer_token = '<|inner_suffix|>' -%}
|
| 151 |
+
{%- set tool_calls_token = '<|tools_prefix|>' -%}
|
| 152 |
+
{%- set end_tool_calls_token = '<|tools_suffix|>' -%}
|
| 153 |
+
{%- set image_token = '<|image|>' -%}
|
| 154 |
+
|
| 155 |
+
{%- set ns = namespace(in_assistant=false, in_tool=false, in_inner=false, waiting_for_tool_outputs=false, assistant_format=none) -%}
|
| 156 |
+
|
| 157 |
+
{%- if messages and messages[0].role == 'system' -%}
|
| 158 |
+
{%- if "content" in messages[0] -%}
|
| 159 |
+
{%- if messages[0].content is string -%}
|
| 160 |
+
{{ system_token + messages[0].content + end_system_token }}
|
| 161 |
+
{%- elif messages[0].content is mapping and "text" in messages[0].content -%}
|
| 162 |
+
{{ system_token + messages[0].content.text + end_system_token }}
|
| 163 |
+
{%- else -%}
|
| 164 |
+
{{- raise_exception("Invalid system message") -}}
|
| 165 |
+
{%- endif -%}
|
| 166 |
+
{%- else -%}
|
| 167 |
+
{{- raise_exception("Invalid system message") -}}
|
| 168 |
+
{%- endif -%}
|
| 169 |
+
{%- set loop_messages = messages[1:] -%}
|
| 170 |
+
{%- else -%}
|
| 171 |
+
{{ system_token + 'You are Apertus, a helpful assistant created by the SwissAI initiative.\nKnowledge cutoff: 2024-04\nCurrent date: ' + strftime_now('%Y-%m-%d') + end_system_token }}
|
| 172 |
+
{%- set loop_messages = messages -%}
|
| 173 |
+
{%- endif -%}
|
| 174 |
+
|
| 175 |
+
{{ developer_token + 'Deliberation: ' }}
|
| 176 |
+
{%- if enable_thinking is defined and enable_thinking -%}
|
| 177 |
+
{{ 'enabled\n' }}
|
| 178 |
+
{%- else -%}
|
| 179 |
+
{{ 'disabled\n' }}
|
| 180 |
+
{%- endif -%}
|
| 181 |
+
{%- if tools is defined and tools -%}
|
| 182 |
+
{{ 'Tool Capabilities:\n' + render_tools(tools) }}
|
| 183 |
+
{%- else -%}
|
| 184 |
+
{{ 'Tool Capabilities: disabled' }}
|
| 185 |
+
{%- endif -%}
|
| 186 |
+
{{ end_developer_token }}
|
| 187 |
+
|
| 188 |
+
{%- for message in loop_messages -%}
|
| 189 |
+
{%- if message.role == 'user' -%}
|
| 190 |
+
{%- set ns.in_inner = false -%}
|
| 191 |
+
{%- if ns.in_tool -%}
|
| 192 |
+
{{ ']' }}
|
| 193 |
+
{%- set ns.in_tool = false -%}
|
| 194 |
+
{%- endif -%}
|
| 195 |
+
{%- if ns.in_assistant -%}
|
| 196 |
+
{{ end_assistant_token }}
|
| 197 |
+
{%- set ns.in_assistant = false -%}
|
| 198 |
+
{%- endif -%}
|
| 199 |
+
{%- if "content" in message -%}
|
| 200 |
+
{{ user_token }}
|
| 201 |
+
{%- if message.content is string -%}
|
| 202 |
+
{{ message.content }}
|
| 203 |
+
{%- elif message.content is mapping and "parts" in message.content -%}
|
| 204 |
+
{%- set parts = message.content.parts -%}
|
| 205 |
+
{%- for part in parts -%}
|
| 206 |
+
{%- if part.type == "text" -%}
|
| 207 |
+
{{ part.text }}
|
| 208 |
+
{%- elif part.type == "image" -%}
|
| 209 |
+
{{ image_token }}
|
| 210 |
+
{%- else -%}
|
| 211 |
+
{{- raise_exception("Invalid user part: " + part.type) -}}
|
| 212 |
+
{%- endif -%}
|
| 213 |
+
{%- endfor -%}
|
| 214 |
+
{%- else -%}
|
| 215 |
+
{{- raise_exception("Invalid user message: " + message.role) -}}
|
| 216 |
+
{%- endif -%}
|
| 217 |
+
{{ end_user_token }}
|
| 218 |
+
{%- endif -%}
|
| 219 |
+
{%- elif message.role == 'assistant' -%}
|
| 220 |
+
{%- if not ns.in_assistant -%}
|
| 221 |
+
{{ assistant_token }}
|
| 222 |
+
{%- set ns.in_assistant = true -%}
|
| 223 |
+
{%- endif -%}
|
| 224 |
+
{%- if "content" in message -%}
|
| 225 |
+
{%- if message.content is string and (ns.assistant_format is none or ns.assistant_format == "string") -%}
|
| 226 |
+
{%- if ns.in_tool -%}
|
| 227 |
+
{{ ']' }}
|
| 228 |
+
{%- set ns.in_tool = false -%}
|
| 229 |
+
{%- endif -%}
|
| 230 |
+
{%- set ns.assistant_format = "string" -%}
|
| 231 |
+
{{ message.content }}
|
| 232 |
+
{%- elif message.content is mapping and "blocks" in message.content and (ns.assistant_format is none or ns.assistant_format == "mapping") -%}
|
| 233 |
+
{%- set ns.assistant_format = "mapping" -%}
|
| 234 |
+
{%- set blocks = message.content.blocks -%}
|
| 235 |
+
{%- for block in blocks -%}
|
| 236 |
+
{%- if block.type == 'thoughts' -%}
|
| 237 |
+
{%- if ns.in_tool -%}
|
| 238 |
+
{{ ']' }}
|
| 239 |
+
{%- set ns.in_tool = false -%}
|
| 240 |
+
{%- endif -%}
|
| 241 |
+
{%- if not ns.in_inner -%}
|
| 242 |
+
{%- set ns.in_inner = true -%}
|
| 243 |
+
{{ inner_token }}
|
| 244 |
+
{%- endif -%}
|
| 245 |
+
{{ block.text }}
|
| 246 |
+
{%- elif block.type == 'tool_calls' -%}
|
| 247 |
+
{%- if ns.in_tool -%}
|
| 248 |
+
{{ ']' }}
|
| 249 |
+
{%- set ns.in_tool = false -%}
|
| 250 |
+
{%- endif -%}
|
| 251 |
+
{%- if ns.in_inner and not loop.first and block.calls|length == 1 and block.calls[0].name == 'display_answers' -%}
|
| 252 |
+
{%- set ns.in_inner = false -%}
|
| 253 |
+
{{ outer_token }}
|
| 254 |
+
{%- endif -%}
|
| 255 |
+
{{ tool_calls_token + '[' }}
|
| 256 |
+
{%- for tool_call in block.calls -%}
|
| 257 |
+
{{- '{"' + tool_call.name + '": ' + tool_call.arguments + '}' }}
|
| 258 |
+
{%- if not loop.last -%}
|
| 259 |
+
{{- ", " }}
|
| 260 |
+
{%- endif -%}
|
| 261 |
+
{%- endfor -%}
|
| 262 |
+
{{ ']' + end_tool_calls_token }}
|
| 263 |
+
{%- set ns.waiting_for_tool_outputs = true -%}
|
| 264 |
+
{%- elif block.type == 'tool_outputs' -%}
|
| 265 |
+
{%- if ns.in_tool -%}
|
| 266 |
+
{{- raise_exception("Cannot have both tool outputs as separate messages and tool outputs as blocks") -}}
|
| 267 |
+
{%- endif -%}
|
| 268 |
+
{{ '[' }}
|
| 269 |
+
{%- for tool_output in block.outputs -%}
|
| 270 |
+
{{- tool_output.output }}
|
| 271 |
+
{%- if not loop.last -%}
|
| 272 |
+
{{- ", " }}
|
| 273 |
+
{%- endif -%}
|
| 274 |
+
{%- endfor -%}
|
| 275 |
+
{{- ']' }}
|
| 276 |
+
{%- set ns.waiting_for_tool_outputs = false -%}
|
| 277 |
+
{%- elif block.type == 'response' -%}
|
| 278 |
+
{%- if ns.in_tool -%}
|
| 279 |
+
{{ ']' }}
|
| 280 |
+
{%- set ns.in_tool = false -%}
|
| 281 |
+
{%- endif -%}
|
| 282 |
+
{%- if (not loop.first and ns.in_inner) or (ns.in_assistant and ns.in_inner) -%}
|
| 283 |
+
{%- set ns.in_inner = false -%}
|
| 284 |
+
{{ outer_token }}
|
| 285 |
+
{%- endif -%}
|
| 286 |
+
{{ block.text }}
|
| 287 |
+
{%- else -%}
|
| 288 |
+
{{- raise_exception("Invalid assistant block type: " + block.type) -}}
|
| 289 |
+
{%- endif -%}
|
| 290 |
+
{%- endfor -%}
|
| 291 |
+
{%- else -%}
|
| 292 |
+
{{- raise_exception("Invalid assistant content") -}}
|
| 293 |
+
{%- endif -%}
|
| 294 |
+
{%- else -%}
|
| 295 |
+
{{- raise_exception("Invalid assistant message") -}}
|
| 296 |
+
{%- endif -%}
|
| 297 |
+
{%- if "tool_calls" in message and message.tool_calls -%}
|
| 298 |
+
{{ tool_calls_token + '[' }}
|
| 299 |
+
{%- for tool_call in message.tool_calls -%}
|
| 300 |
+
{%- if tool_call.type == 'function' -%}
|
| 301 |
+
{%- set function = tool_call.function -%}
|
| 302 |
+
{{- '{"' + function.name + '": ' + function.arguments + '}' }}
|
| 303 |
+
{%- if not loop.last -%}
|
| 304 |
+
{{- ", " }}
|
| 305 |
+
{%- endif -%}
|
| 306 |
+
{%- else -%}
|
| 307 |
+
{{- raise_exception("Invalid tool call type: " + tool_call.type) -}}
|
| 308 |
+
{%- endif -%}
|
| 309 |
+
{%- endfor -%}
|
| 310 |
+
{{ ']' + end_tool_calls_token }}
|
| 311 |
+
{%- set ns.waiting_for_tool_outputs = true -%}
|
| 312 |
+
{%- endif -%}
|
| 313 |
+
{%- elif message.role == 'tool' -%}
|
| 314 |
+
{%- if not ns.in_assistant -%}
|
| 315 |
+
{{- raise_exception("Tool message outside of assistant") -}}
|
| 316 |
+
{%- endif -%}
|
| 317 |
+
{%- if not ns.in_tool -%}
|
| 318 |
+
{{ '[' }}
|
| 319 |
+
{%- set ns.in_tool = true -%}
|
| 320 |
+
{%- else -%}
|
| 321 |
+
{{ ", "}}
|
| 322 |
+
{%- endif -%}
|
| 323 |
+
{{ message.content }}
|
| 324 |
+
{%- set ns.waiting_for_tool_outputs = false -%}
|
| 325 |
+
{%- else -%}
|
| 326 |
+
{{- raise_exception("Invalid message role") -}}
|
| 327 |
+
{%- endif -%}
|
| 328 |
+
{%- endfor -%}
|
| 329 |
+
{%- if ns.in_tool -%}
|
| 330 |
+
{{ ']' }}
|
| 331 |
+
{%- endif -%}
|
| 332 |
+
{%- if ns.in_assistant and not (continue_assistant_message is defined and continue_assistant_message) and not ns.waiting_for_tool_outputs -%}
|
| 333 |
+
{{ end_assistant_token }}
|
| 334 |
+
{%- endif -%}
|
| 335 |
+
{%- if add_generation_prompt -%}
|
| 336 |
+
{{ assistant_token }}
|
| 337 |
+
{%- endif -%}
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/optimizer.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:566c2773ae40e364cb93075414c893b77cb967d55af04b03e46d79541b5ce60a
|
| 3 |
+
size 2553
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/rng_state.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbf543ae8ddfcf5a2048d684daecf0dea40eee2bdca3c10ca7e03b0a852c42bd
|
| 3 |
+
size 14645
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/scaler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9302349695b46322c71ca380fcb7c8bb1f37452ddb7418fb896ecc4565cda87c
|
| 3 |
+
size 1383
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:326f018aa6bc1c1973d87e691b3dd20889dfede4df42dc5f9290c90a9e50ccff
|
| 3 |
+
size 1465
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/special_tokens_map.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|assistant_end|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<pad>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
},
|
| 23 |
+
"unk_token": {
|
| 24 |
+
"content": "<unk>",
|
| 25 |
+
"lstrip": false,
|
| 26 |
+
"normalized": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"single_word": false
|
| 29 |
+
}
|
| 30 |
+
}
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:010095abf1dc6f52d4867584e7b3f0d4eece854593ae310220ec7782dd1b0a66
|
| 3 |
+
size 17078474
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/trainer_state.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_global_step": null,
|
| 3 |
+
"best_metric": null,
|
| 4 |
+
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 1.0,
|
| 6 |
+
"eval_steps": 500,
|
| 7 |
+
"global_step": 139,
|
| 8 |
+
"is_hyper_param_search": false,
|
| 9 |
+
"is_local_process_zero": true,
|
| 10 |
+
"is_world_process_zero": true,
|
| 11 |
+
"log_history": [
|
| 12 |
+
{
|
| 13 |
+
"entropy": NaN,
|
| 14 |
+
"epoch": 1.0,
|
| 15 |
+
"grad_norm": NaN,
|
| 16 |
+
"learning_rate": 0.0,
|
| 17 |
+
"loss": 0.0,
|
| 18 |
+
"mean_token_accuracy": 0.0,
|
| 19 |
+
"num_tokens": 2217367.0,
|
| 20 |
+
"step": 139
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"epoch": 1.0,
|
| 24 |
+
"eval_entropy": NaN,
|
| 25 |
+
"eval_loss": NaN,
|
| 26 |
+
"eval_mean_token_accuracy": 0.0,
|
| 27 |
+
"eval_num_tokens": 2217367.0,
|
| 28 |
+
"eval_runtime": 213.0529,
|
| 29 |
+
"eval_samples_per_second": 5.661,
|
| 30 |
+
"eval_steps_per_second": 0.709,
|
| 31 |
+
"step": 139
|
| 32 |
+
}
|
| 33 |
+
],
|
| 34 |
+
"logging_steps": 10,
|
| 35 |
+
"max_steps": 695,
|
| 36 |
+
"num_input_tokens_seen": 0,
|
| 37 |
+
"num_train_epochs": 5,
|
| 38 |
+
"save_steps": 500,
|
| 39 |
+
"stateful_callbacks": {
|
| 40 |
+
"TrainerControl": {
|
| 41 |
+
"args": {
|
| 42 |
+
"should_epoch_stop": false,
|
| 43 |
+
"should_evaluate": false,
|
| 44 |
+
"should_log": false,
|
| 45 |
+
"should_save": true,
|
| 46 |
+
"should_training_stop": false
|
| 47 |
+
},
|
| 48 |
+
"attributes": {}
|
| 49 |
+
}
|
| 50 |
+
},
|
| 51 |
+
"total_flos": 1.4111823706600512e+17,
|
| 52 |
+
"train_batch_size": 4,
|
| 53 |
+
"trial_name": null,
|
| 54 |
+
"trial_params": null
|
| 55 |
+
}
|
apertus/combined/params_training.lr=3e-4_training.num_epochs=5_training=large/checkpoint-139/training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67e1bf3f435000da90a69d170768320132ef27678da6341dc608b4e6820e1488
|
| 3 |
+
size 6353
|