carbenv / README.md
beingamanforever's picture
Seven more Indian languages and the SFT v3 training steps
a081e0a verified
|
Raw History Blame Contribute Delete
4.3 kB
---
license: cc0-1.0
language: [en, hi, bn, te, mr, ml, kn, gu, pa]
pretty_name: CarbEnv
tags: [nutrition, diabetes, carb-counting, tool-use, agents, rl-environment, openenv]
size_categories: [10K<n<100K]
configs:
- config_name: core
data_files:
- {split: core, path: data/core.jsonl}
- {split: core_hi, path: data/core_hi.jsonl}
- {split: core_enin, path: data/core_enin.jsonl}
- {split: core_bn, path: data/core_bn.jsonl}
- {split: core_te, path: data/core_te.jsonl}
- {split: core_mr, path: data/core_mr.jsonl}
- {split: core_ml, path: data/core_ml.jsonl}
- {split: core_kn, path: data/core_kn.jsonl}
- {split: core_gu, path: data/core_gu.jsonl}
- {split: core_pa, path: data/core_pa.jsonl}
- config_name: sft
data_files:
- {split: train, path: data/sft.jsonl}
---
# CarbEnv
Count the carbohydrate in a meal the way a dietitian does: name each food, look it up, weigh the portion, add up.
CarbEnv turns that lookup into an environment with exact answers, and this dataset holds its held-out test meals and verified training steps.
<video src="https://huggingface.co/datasets/TrueEnvs/carbenv/resolve/main/assets/carbenv.mp4" poster="https://huggingface.co/datasets/TrueEnvs/carbenv/resolve/main/assets/cover.png" controls muted loop playsinline width="100%"></video>
![CarbEnv data engine](assets/pipeline.png)
**Decision support, not dosing advice.** Agreement with food tables is not better glucose control; only a study with people can show that.
## What is inside
| Config | Split | Rows | What it is |
|---|---|---|---|
| `core` | `core` | 150 | Held-out meals in English, frozen before any training |
| `core` | `core_hi` | 116 | The same meals in Hindi |
| `core` | `core_enin` | 123 | The same meals in Indian English |
| `core` | `core_bn` | 89 | The same meals in Bengali |
| `core` | `core_te` | 123 | The same meals in Telugu |
| `core` | `core_mr` | 119 | The same meals in Marathi |
| `core` | `core_ml` | 111 | The same meals in Malayalam |
| `core` | `core_kn` | 122 | The same meals in Kannada |
| `core` | `core_gu` | 110 | The same meals in Gujarati |
| `core` | `core_pa` | 104 | The same meals in Punjabi |
| `sft` | `train` | 32,797 | Tool-calling steps from strong models whose episodes replay to the same reward |
- Meals are real eating occasions from the US NHANES / WWEIA dietary survey.
- Every label is recomputed from the USDA FNDDS 2021-2023 food table as carbs per 100 g × grams, never from a model.
- The localized splits were made with Adaption's Adaptive Data; each localized meal keeps its English label and passed checks that its numbers, units, script and foods did not change.
- Rows match the frozen evaluation files; `core` also carries the localized splits' `locale`, `localizer`, `screen` and `source_description` columns, so all splits share one schema.
- `food_swap: true` marks 7 Hindi rows where the translation names a regional food the English meal does not (for example cheese as paneer). They are kept because published results were measured on this frozen file; report with and without them. The seven newer languages were localized after a regional-food check was added, so none of their rows has a swap.
## Use it
```python
from datasets import load_dataset
core = load_dataset("TrueEnvs/carbenv", "core")
sft = load_dataset("TrueEnvs/carbenv", "sft", split="train")
```
Run agents against the environment: [code and quickstart](https://github.com/beingamanforever/TrueEnvs/tree/main/01-carbenv).
Trained model: [TrueEnvs/carbenv-qwen3.5-4b](https://huggingface.co/TrueEnvs/carbenv-qwen3.5-4b).
## Headline result
Qwen3.5-4B fine-tuned on these steps goes from 54.9% to 96.0% on `core` (pass@1, mean of three runs), 44.8% to 89.7% in Hindi and 51.2% to 92.7% in Indian English, and scores 66 to 85% on the seven other Indian languages.
The released model was trained on 37,497 steps: these 32,797 plus 4,700 in a language still being improved, not released here.
Details: [two-page report](assets/report.pdf) · [30-second video](assets/carbenv.mp4).
## Sources and licence
Public domain: NHANES / WWEIA (CDC NCHS) and USDA FNDDS 2021-2023 (CC0). This dataset is released under CC0 1.0.
Part of [TrueEnvs](https://github.com/beingamanforever/TrueEnvs): RL environments whose rewards check the work.