Spaces:
Running
Running
Commit ·
af8efb9
1
Parent(s): ffe65ee
chore: add script to update trl dependency version in gridmind_grpo_colab.ipynb
Browse files1234567891011121314151617import json
file_path = r"c:\Projects\gridmind\scripts\gridmind_grpo_colab.ipynb"
with open(file_path, 'r', encoding='utf-8') as f: nb = json.load(f)
for cell in nb['cells']: if cell['cell_type'] == 'code': for i, line in enumerate(cell['source']): if '!pip install trl==0.8.6' in line: cell['source'][i] = line.replace('trl==0.8.6', 'trl>=0.14.0')
with open(file_path, 'w', encoding='utf-8') as f: json.dump(nb, f, indent=1) print("Updated notebook to use trl>=0.14.0")scratch/fix_trl_version.pyAdded+17