Skip to content

Commit 56006a9

Browse files
committed
Add README_MODEL_NAME_OVERRIDES and wrap CodeForces row
The "CodeForces cot Finetune for Reasoning on CodeForces" model name is 51 characters and forces the README table cell to render on a single very wide line. Add a per-notebook display-name override map keyed by the on-disk basename so notebooks with verbose auto-derived names can embed <br> tags and wrap onto multiple lines. Apply the override to: CodeForces-cot-Finetune_for_Reasoning_on_CodeForces.ipynb Kaggle-CodeForces-cot-Finetune_for_Reasoning_on_CodeForces.ipynb Both rows now render as CodeForces cot Finetune for Reasoning on CodeForces instead of one 51-char line. The override slot is empty for every other notebook, so this is the only row that changes shape.
1 parent 584604c commit 56006a9

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Below are Colab notebooks, organized by model. You can also view all [notebooks
306306
| **Synthetic Data Hackathon** | Synthetic Data | <a href="https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Synthetic_Data_Hackathon.ipynb" target="_blank" rel="noopener noreferrer"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> |
307307
| **NeMo Gym Sudoku** | | <a href="https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/NeMo-Gym-Sudoku.ipynb" target="_blank" rel="noopener noreferrer"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> |
308308
| **NeMo Gym Multi Environment** | | <a href="https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/NeMo-Gym-Multi-Environment.ipynb" target="_blank" rel="noopener noreferrer"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> |
309-
| **CodeForces cot Finetune for Reasoning on CodeForces** | Reasoning | <a href="https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/CodeForces-cot-Finetune_for_Reasoning_on_CodeForces.ipynb" target="_blank" rel="noopener noreferrer"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> |
309+
| **CodeForces cot Finetune<br>for Reasoning on CodeForces** | Reasoning | <a href="https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/CodeForces-cot-Finetune_for_Reasoning_on_CodeForces.ipynb" target="_blank" rel="noopener noreferrer"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"></a> |
310310

311311
# 📒 Kaggle Notebooks
312312
<details>
@@ -513,7 +513,7 @@ Below are Colab notebooks, organized by model. You can also view all [notebooks
513513
| Model | Type | Notebook Link |
514514
| --- | --- | --- |
515515
| **Unsloth** | Studio | <a href="https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-Unsloth_Studio.ipynb&accelerator=nvidiaTeslaT4" target="_blank" rel="noopener noreferrer"><img src="https://kaggle.com/static/images/open-in-kaggle.svg" alt="Open in Kaggle"></a> |
516-
| **CodeForces cot Finetune for Reasoning on CodeForces** | Reasoning | <a href="https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-CodeForces-cot-Finetune_for_Reasoning_on_CodeForces.ipynb&accelerator=nvidiaTeslaT4" target="_blank" rel="noopener noreferrer"><img src="https://kaggle.com/static/images/open-in-kaggle.svg" alt="Open in Kaggle"></a> |
516+
| **CodeForces cot Finetune<br>for Reasoning on CodeForces** | Reasoning | <a href="https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-CodeForces-cot-Finetune_for_Reasoning_on_CodeForces.ipynb&accelerator=nvidiaTeslaT4" target="_blank" rel="noopener noreferrer"><img src="https://kaggle.com/static/images/open-in-kaggle.svg" alt="Open in Kaggle"></a> |
517517

518518
</details>
519519

update_all_notebooks.py

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,18 @@ def _replace(m):
953953
"Meta_Synthetic_Data_Llama3_2_(3B).ipynb"
954954
]
955955

956+
# Per-notebook overrides for the Model column in README.md tables. Keyed by
957+
# the on-disk basename (with .ipynb). The value is the literal Markdown text
958+
# rendered between the surrounding ** ** bold markers, so HTML tags such as
959+
# <br> can be embedded for multi-line cells. Only set this for notebooks
960+
# whose computed model name is too long to fit on a single README row.
961+
README_MODEL_NAME_OVERRIDES = {
962+
"CodeForces-cot-Finetune_for_Reasoning_on_CodeForces.ipynb":
963+
"CodeForces cot Finetune<br>for Reasoning on CodeForces",
964+
"Kaggle-CodeForces-cot-Finetune_for_Reasoning_on_CodeForces.ipynb":
965+
"CodeForces cot Finetune<br>for Reasoning on CodeForces",
966+
}
967+
956968

957969
FIRST_MAPPING_NAME = {
958970
"gpt-oss-(20B)-Fine-tuning.ipynb" : "gpt_oss_(20B)-Fine-tuning.ipynb",
@@ -2990,8 +3002,14 @@ def update_readme(
29903002
print(f"Error processing {notebook_name}: {e}")
29913003
info = {'name': notebook_name.replace('.ipynb',''), 'size': None, 'type': 'Error', 'architecture': None, 'requires_a100': False} # Fallback
29923004

2993-
model_name = info['name'] if info and info['name'] else notebook_name.replace('.ipynb','')
2994-
model_type = info['type'] if info and info['type'] else ""
3005+
model_name = info['name'] if info and info['name'] else notebook_name.replace('.ipynb','')
3006+
# Apply per-notebook display-name override (keyed by on-disk basename)
3007+
# so notebooks with very long auto-derived names can wrap onto multiple
3008+
# lines in the rendered Markdown table.
3009+
on_disk_basename = os.path.basename(path)
3010+
if on_disk_basename in README_MODEL_NAME_OVERRIDES:
3011+
model_name = README_MODEL_NAME_OVERRIDES[on_disk_basename]
3012+
model_type = info['type'] if info and info['type'] else ""
29953013
architecture = info['architecture'] if info else None
29963014
size = info['size']
29973015
size = size.replace(r"_", " ") if size else None

0 commit comments

Comments
 (0)