Datasets:
Tasks:
Text Generation
Formats:
parquet
Languages:
Portuguese
Size:
10K - 100K
Tags:
scientific-computing
structural-engineering
timoshenko-beam
synthetic-data
curriculum-learning
multimodal-text
License:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -92,7 +92,7 @@ configs:
|
|
| 92 |
path: data/validation.parquet
|
| 93 |
- split: test
|
| 94 |
path: data/test.parquet
|
| 95 |
-
license:
|
| 96 |
task_categories:
|
| 97 |
- text-generation
|
| 98 |
language:
|
|
@@ -106,186 +106,199 @@ tags:
|
|
| 106 |
- multimodal-text
|
| 107 |
- code-generation
|
| 108 |
- enedina
|
|
|
|
|
|
|
| 109 |
size_categories:
|
| 110 |
- 10K<n<100K
|
| 111 |
---
|
| 112 |
|
| 113 |
-
# Mini-Enedina Dataset: Timoshenko
|
| 114 |
|
| 115 |
-
|
| 116 |
|
| 117 |
-
##
|
| 118 |
|
| 119 |
-
60
|
| 120 |
|
| 121 |
-
|
|
| 122 |
-
|-------|---------
|
| 123 |
-
| **Bachelor** |
|
| 124 |
-
| **Master** | +
|
| 125 |
-
| **Doctor** | +
|
| 126 |
|
| 127 |
-
**Total:** 621M tokens (
|
| 128 |
|
| 129 |
-
|
| 130 |
|
| 131 |
-
|
|
|
|
|
|
|
| 132 |
|
| 133 |
```
|
| 134 |
<|system|>
|
| 135 |
-
|
| 136 |
<|end|>
|
| 137 |
<|user|>
|
| 138 |
-
|
| 139 |
<|end|>
|
| 140 |
<|assistant|>
|
| 141 |
<|ch1_start|>thinking<|ch1_end|>
|
| 142 |
-
[
|
| 143 |
<|ch2_start|>response<|ch2_end|>
|
| 144 |
-
[
|
| 145 |
<|end|>
|
| 146 |
<|return|>
|
| 147 |
```
|
| 148 |
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
##
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
|
| 155 |
-
|
|
| 156 |
-
| `
|
| 157 |
-
| `
|
| 158 |
-
| `
|
| 159 |
-
| `
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
|
| 165 |
-
|
|
| 166 |
-
| `
|
| 167 |
-
| `
|
| 168 |
-
| `
|
| 169 |
-
| `
|
| 170 |
-
| `
|
| 171 |
-
| `
|
| 172 |
-
| `
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
|
| 178 |
-
|
|
| 179 |
-
| `
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
|
| 185 |
-
|
|
| 186 |
-
| `
|
| 187 |
-
| `
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
|
| 193 |
-
|
|
| 194 |
-
| `
|
| 195 |
-
| `
|
| 196 |
-
| `
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
|
| 202 |
-
|
|
| 203 |
-
| `
|
| 204 |
-
| `
|
|
|
|
|
|
|
| 205 |
|
| 206 |
### Metadata
|
| 207 |
-
|
|
| 208 |
-
|--------|------|-----------|
|
| 209 |
-
| `expected_route` | string |
|
| 210 |
-
| `split` | string | Split: `train`, `val`
|
| 211 |
-
| `fold` | int32 |
|
| 212 |
-
| `solve_time_ms` | float64 |
|
| 213 |
-
| `template_variation` | int32 |
|
| 214 |
-
|
| 215 |
-
##
|
| 216 |
-
|
| 217 |
-
|
|
| 218 |
-
|--------
|
| 219 |
-
| Total
|
| 220 |
-
|
|
| 221 |
-
|
|
| 222 |
-
|
|
| 223 |
-
|
|
| 224 |
-
|
|
| 225 |
-
|
|
| 226 |
-
|
| 227 |
-
##
|
| 228 |
|
| 229 |
```python
|
| 230 |
from datasets import load_dataset
|
| 231 |
|
| 232 |
dataset = load_dataset("aiacontext/mini-enedina-dataset")
|
| 233 |
|
| 234 |
-
#
|
| 235 |
-
train = dataset["train"] # 48,000
|
| 236 |
-
val = dataset["validation"] # 6,000
|
| 237 |
-
test = dataset["test"] # 6,000
|
| 238 |
|
| 239 |
-
#
|
| 240 |
bachelor = train.filter(lambda x: x["level"] == "bachelor")
|
| 241 |
doctor = train.filter(lambda x: x["level"] == "doctor")
|
| 242 |
|
| 243 |
-
#
|
| 244 |
sample = train[0]
|
| 245 |
print(sample["conversation"][:500])
|
| 246 |
print(f"Tokens: {sample['total_tokens']}")
|
| 247 |
print(f"Level: {sample['level']}")
|
| 248 |
```
|
| 249 |
|
| 250 |
-
##
|
| 251 |
|
| 252 |
-
|
| 253 |
|
| 254 |
-
1. **
|
| 255 |
-
2. **
|
| 256 |
-
3. **
|
| 257 |
-
4. **
|
| 258 |
|
| 259 |
-
###
|
| 260 |
|
| 261 |
```
|
| 262 |
-
V(x) = RA - q*x - sum(Fi * H(x - xi)) (
|
| 263 |
-
M(x) = RA*x - q*x^2/2 - sum(Fi*(x-xi)*H(x-xi)) (
|
| 264 |
-
dw/dx = theta + V/(kappa*G*A) (
|
| 265 |
-
q = rho * g * A * 1e-9 (
|
| 266 |
```
|
| 267 |
|
| 268 |
-
##
|
| 269 |
-
|
| 270 |
-
O modelo treinado com este dataset esta disponivel em: [aiacontext/mini-enedina](https://huggingface.co/aiacontext/mini-enedina)
|
| 271 |
|
| 272 |
-
|
| 273 |
-
- **Parametros:** 37.5M
|
| 274 |
-
- **Framework:** MLX (Apple Silicon)
|
| 275 |
-
- **Test Loss:** 0.0787 | **Test PPL:** 1.08
|
| 276 |
|
| 277 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
|
| 279 |
-
|
| 280 |
|
| 281 |
-
|
| 282 |
|
| 283 |
```bibtex
|
| 284 |
-
@
|
| 285 |
-
title={Mini-Enedina
|
| 286 |
-
author={
|
| 287 |
-
year={2026}
|
| 288 |
-
publisher={Hugging Face},
|
| 289 |
-
url={https://huggingface.co/datasets/aiacontext/mini-enedina-dataset}
|
| 290 |
}
|
| 291 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
path: data/validation.parquet
|
| 93 |
- split: test
|
| 94 |
path: data/test.parquet
|
| 95 |
+
license: cc-by-4.0
|
| 96 |
task_categories:
|
| 97 |
- text-generation
|
| 98 |
language:
|
|
|
|
| 106 |
- multimodal-text
|
| 107 |
- code-generation
|
| 108 |
- enedina
|
| 109 |
+
- validated-synthetic-data
|
| 110 |
+
- physics-informed-ai
|
| 111 |
size_categories:
|
| 112 |
- 10K<n<100K
|
| 113 |
---
|
| 114 |
|
| 115 |
+
# Mini-Enedina Dataset: Physically Validated Timoshenko Shaft Analysis (60k)
|
| 116 |
|
| 117 |
+
Training dataset for [Mini-Enedina 37.5M](https://huggingface.co/aiacontext/mini-enedina) -- a monotropic language model deliberately small and intensively specialized for structural shaft analysis according to Timoshenko beam theory.
|
| 118 |
|
| 119 |
+
## Dataset Description
|
| 120 |
|
| 121 |
+
60,000 synthetic conversations in **Harmony-Enedina** format (a ChatML variant), covering three progressively complex levels of shaft analysis:
|
| 122 |
|
| 123 |
+
| Level | Analysis Scope | Samples | Avg. Tokens/Sample |
|
| 124 |
+
|-------|---------------|---------|---------------------|
|
| 125 |
+
| **Bachelor** | Deflection (V, M, w, theta) | 20,000 | 8,394 |
|
| 126 |
+
| **Master** | + Von Mises stress (sigma_VM, sigma_adm) | 20,000 | 9,883 |
|
| 127 |
+
| **Doctor** | + Fatigue (Marin factors, Goodman criterion) | 20,000 | 12,775 |
|
| 128 |
|
| 129 |
+
**Total:** 621M tokens (custom 8,012-token BPE vocabulary).
|
| 130 |
|
| 131 |
+
Every sample is **physically validated** -- the numerical solver runs to completion, and deflection, stress, and fatigue checks are verified before inclusion in the dataset.
|
| 132 |
|
| 133 |
+
## Conversation Format: Harmony-Enedina
|
| 134 |
+
|
| 135 |
+
Each sample contains a complete conversation with two semantic channels (reasoning + response) and metacognition via headers:
|
| 136 |
|
| 137 |
```
|
| 138 |
<|system|>
|
| 139 |
+
You are Enedina, a structural engineer...
|
| 140 |
<|end|>
|
| 141 |
<|user|>
|
| 142 |
+
Analyze the transmission shaft with the following parameters...
|
| 143 |
<|end|>
|
| 144 |
<|assistant|>
|
| 145 |
<|ch1_start|>thinking<|ch1_end|>
|
| 146 |
+
[Detailed technical reasoning]
|
| 147 |
<|ch2_start|>response<|ch2_end|>
|
| 148 |
+
[Formatted response with LaTeX equations and Python solver code]
|
| 149 |
<|end|>
|
| 150 |
<|return|>
|
| 151 |
```
|
| 152 |
|
| 153 |
+
Domain-specific tokens (`<|shaft|>`, `<|python|>`, `<|numerical|>`, `<|latex|>`) demarcate semantic boundaries within the output. The training language is Brazilian Portuguese.
|
| 154 |
+
|
| 155 |
+
## Features (36 columns)
|
| 156 |
+
|
| 157 |
+
### Identification
|
| 158 |
+
| Column | Type | Description |
|
| 159 |
+
|--------|------|-------------|
|
| 160 |
+
| `id` | string | Unique SHA-256 hash |
|
| 161 |
+
| `problem_type` | string | Always `shaft_timoshenko` |
|
| 162 |
+
| `problem_class` | string | Problem class |
|
| 163 |
+
| `level` | string | `bachelor`, `master`, or `doctor` |
|
| 164 |
+
| `curriculum_stage` | int32 | Curriculum stage (0, 1, 2) |
|
| 165 |
+
| `analysis_depth` | string | `deflection`, `stress`, or `fatigue` |
|
| 166 |
+
|
| 167 |
+
### Shaft Parameters
|
| 168 |
+
| Column | Type | Description |
|
| 169 |
+
|--------|------|-------------|
|
| 170 |
+
| `D_ext_mm` | float64 | External diameter [mm] |
|
| 171 |
+
| `D_int_mm` | float64 | Internal diameter [mm] (0 for solid) |
|
| 172 |
+
| `L_mm` | float64 | Shaft length [mm] |
|
| 173 |
+
| `section_type` | string | `macico` (solid) or `vazado` (hollow) |
|
| 174 |
+
| `L_D_ratio` | float64 | L/D ratio (slenderness) |
|
| 175 |
+
| `material_name` | string | Material name (e.g., AISI 1045) |
|
| 176 |
+
| `E_GPa` | float64 | Young's modulus [GPa] |
|
| 177 |
+
| `S_y_MPa` | float64 | Yield strength [MPa] |
|
| 178 |
+
| `S_ut_MPa` | float64 | Ultimate tensile strength [MPa] |
|
| 179 |
+
|
| 180 |
+
### Loading
|
| 181 |
+
| Column | Type | Description |
|
| 182 |
+
|--------|------|-------------|
|
| 183 |
+
| `n_loads` | int32 | Number of applied loads |
|
| 184 |
+
| `n_bearings` | int32 | Number of bearings |
|
| 185 |
+
| `total_load_kN` | float64 | Total load [kN] |
|
| 186 |
+
|
| 187 |
+
### Analysis Results
|
| 188 |
+
| Column | Type | Description |
|
| 189 |
+
|--------|------|-------------|
|
| 190 |
+
| `V_max_kN` | float64 | Maximum shear force [kN] |
|
| 191 |
+
| `M_max_kNmm` | float64 | Maximum bending moment [kN.mm] |
|
| 192 |
+
| `w_max_mm` | float64 | Maximum deflection [mm] |
|
| 193 |
+
| `w_limit_mm` | float64 | Deflection limit [mm] |
|
| 194 |
+
|
| 195 |
+
### Validation
|
| 196 |
+
| Column | Type | Description |
|
| 197 |
+
|--------|------|-------------|
|
| 198 |
+
| `validation_passed` | bool | All validations passed |
|
| 199 |
+
| `deflection_passed` | bool | Deflection within limit |
|
| 200 |
+
| `stress_passed` | string | Stress analysis result |
|
| 201 |
+
| `fatigue_passed` | string | Fatigue analysis result |
|
| 202 |
+
| `difficulty_score` | float64 | Difficulty score [0-1] |
|
| 203 |
+
|
| 204 |
+
### Conversation
|
| 205 |
+
| Column | Type | Description |
|
| 206 |
+
|--------|------|-------------|
|
| 207 |
+
| `conversation` | string | Full conversation in Harmony format |
|
| 208 |
+
| `user_tokens` | int32 | User prompt token count |
|
| 209 |
+
| `assistant_tokens` | int32 | Assistant response token count |
|
| 210 |
+
| `total_tokens` | int32 | Total conversation token count |
|
| 211 |
|
| 212 |
### Metadata
|
| 213 |
+
| Column | Type | Description |
|
| 214 |
+
|--------|------|-------------|
|
| 215 |
+
| `expected_route` | string | Expected route (bachelor/master/doctor) |
|
| 216 |
+
| `split` | string | Split: `train`, `val`, or `test` |
|
| 217 |
+
| `fold` | int32 | Cross-validation fold |
|
| 218 |
+
| `solve_time_ms` | float64 | Solver execution time [ms] |
|
| 219 |
+
| `template_variation` | int32 | Template variation used |
|
| 220 |
+
|
| 221 |
+
## Token Statistics
|
| 222 |
+
|
| 223 |
+
| Metric | Value |
|
| 224 |
+
|--------|-------|
|
| 225 |
+
| Total tokens | 621,028,968 |
|
| 226 |
+
| Mean per sample | 10,350 |
|
| 227 |
+
| Minimum | 8,280 |
|
| 228 |
+
| Maximum | 12,996 |
|
| 229 |
+
| Median | 9,881 |
|
| 230 |
+
| User tokens (mean) | 358 |
|
| 231 |
+
| Assistant tokens (mean) | 9,932 |
|
| 232 |
+
|
| 233 |
+
## Usage
|
| 234 |
|
| 235 |
```python
|
| 236 |
from datasets import load_dataset
|
| 237 |
|
| 238 |
dataset = load_dataset("aiacontext/mini-enedina-dataset")
|
| 239 |
|
| 240 |
+
# Access splits
|
| 241 |
+
train = dataset["train"] # 48,000 samples
|
| 242 |
+
val = dataset["validation"] # 6,000 samples
|
| 243 |
+
test = dataset["test"] # 6,000 samples
|
| 244 |
|
| 245 |
+
# Filter by level
|
| 246 |
bachelor = train.filter(lambda x: x["level"] == "bachelor")
|
| 247 |
doctor = train.filter(lambda x: x["level"] == "doctor")
|
| 248 |
|
| 249 |
+
# Access a conversation
|
| 250 |
sample = train[0]
|
| 251 |
print(sample["conversation"][:500])
|
| 252 |
print(f"Tokens: {sample['total_tokens']}")
|
| 253 |
print(f"Level: {sample['level']}")
|
| 254 |
```
|
| 255 |
|
| 256 |
+
## Data Generation
|
| 257 |
|
| 258 |
+
The data was generated by **Factorium SciML** -- a Julia/Python framework for scientific synthetic data generation:
|
| 259 |
|
| 260 |
+
1. **Numerical solver** (Python/NumPy): solves each Timoshenko problem with randomized parameters
|
| 261 |
+
2. **Variable templates**: 97k description combinations in PT-BR (46^3 variations)
|
| 262 |
+
3. **Numerical grounding**: a citation system that ensures consistency between input parameters and values in the response
|
| 263 |
+
4. **Validation**: every sample is verified (deflection, stress, fatigue) before inclusion
|
| 264 |
|
| 265 |
+
### Governing Equations (Timoshenko with self-weight)
|
| 266 |
|
| 267 |
```
|
| 268 |
+
V(x) = RA - q*x - sum(Fi * H(x - xi)) (Shear force)
|
| 269 |
+
M(x) = RA*x - q*x^2/2 - sum(Fi*(x-xi)*H(x-xi)) (Bending moment)
|
| 270 |
+
dw/dx = theta + V/(kappa*G*A) (Deflection with shear)
|
| 271 |
+
q = rho * g * A * 1e-9 (Distributed self-weight [N/mm])
|
| 272 |
```
|
| 273 |
|
| 274 |
+
## Trained Model
|
|
|
|
|
|
|
| 275 |
|
| 276 |
+
The model trained on this dataset is available at: [aiacontext/mini-enedina](https://huggingface.co/aiacontext/mini-enedina)
|
|
|
|
|
|
|
|
|
|
| 277 |
|
| 278 |
+
| Parameter | Value |
|
| 279 |
+
|-----------|-------|
|
| 280 |
+
| **Architecture** | Dense Transformer (RoPE, RMSNorm, SwiGLU) |
|
| 281 |
+
| **Parameters** | 37.5M |
|
| 282 |
+
| **Framework** | MLX (Apple Silicon) |
|
| 283 |
+
| **Test Loss** | 0.0787 |
|
| 284 |
+
| **Test Perplexity** | 1.08 |
|
| 285 |
|
| 286 |
+
## Citation
|
| 287 |
|
| 288 |
+
If you use this dataset, please cite:
|
| 289 |
|
| 290 |
```bibtex
|
| 291 |
+
@article{leitaofilho2026minienedina,
|
| 292 |
+
title={Mini-Enedina: A Domain-Specialized Small Language Model for Structural Shaft Analysis Using Timoshenko Beam Theory},
|
| 293 |
+
author={Leit{\~a}o Filho, Antonio de Sousa and Barros Filho, Allan Kardec Duailibe and Lima, Fabr{\'i}cio Saul and Santos, Selby Mykael Lima dos and Sousa, Rejani Bandeira Vieira},
|
| 294 |
+
year={2026}
|
|
|
|
|
|
|
| 295 |
}
|
| 296 |
```
|
| 297 |
+
|
| 298 |
+
## Acknowledgments
|
| 299 |
+
|
| 300 |
+
This work was supported by Aia Context Ltda. and by FINEP -- Funding Authority for Studies and Projects, a Brazilian government agency for science, technology, and innovation linked to the Ministry of Science, Technology and Innovation (MCTI), under Contract No. 03.25.0080.00.
|
| 301 |
+
|
| 302 |
+
## License
|
| 303 |
+
|
| 304 |
+
CC-BY-4.0
|