Commit graph

753 commits

Author SHA1 Message Date
Rich Jones
556860d5b1 add random paren grouping 2025-02-20 10:46:01 +01:00
Rich Jones
edba52d2a2
Merge branch 'main' into rich/decimalmath 2025-02-20 10:07:28 +01:00
theblackcat102
44559aac95 [fix] precommit not happy 2025-02-20 17:00:18 +08:00
theblackcat102
407b212326 [feat] remove answer parsing since its already handled 2025-02-20 16:57:51 +08:00
Andreas Köpf
6cd8da9338
Merge pull request #166 from joesharratt1229/fix/envs
Fix/envs
2025-02-20 00:40:27 +01:00
vncntt
992896af29
Merge branch 'open-thought:main' into decimal_chain_sum 2025-02-19 15:31:20 -08:00
vncntt
cdcd79ae2b register decimal_chain_sum 2025-02-19 15:30:30 -08:00
Andreas Köpf
1cf44267f3
Merge pull request #164 from vncntt/decimal_chain_sum
decimal_chain_sum
2025-02-20 00:14:23 +01:00
vncntt
83e5e92126 decimal refactor 2025-02-19 14:46:27 -08:00
Andreas Köpf
e2702092f4
reasoning-gym-server & cli tool (#154)
* feat: Add initial server structure with configuration, registry, and middleware

* feat: Add chain_sum dataset to experiment registry test

* fix: Update test_registry to use DatasetSpec for composite config validation

* refactor: Update Pydantic config to use json_schema_extra and ConfigDict

* feat: Add Pydantic models for API request/response data

* feat: Implement basic experiment management endpoints with tests

* feat: Implement composite configuration endpoints for experiments

* fix: Add missing DatasetConfigUpdate import in server.py

* refactor: Update dataset config update method to properly merge config updates

* fix: Correctly retrieve current dataset config in composite endpoint

* feat: Add basic CLI structure with experiments and config commands

* feat: Add initial CLI tool with basic experiment management commands

* refactor: Reorganize CLI package structure and fix import paths

* refactor: Implement initial CLI commands for experiment management

* feat: Implement HTTP client for Reasoning Gym server in RGC CLI tool

* fix: Move print statements inside try block to resolve SyntaxError

* fix: Resolve SyntaxError in edit_config function by adding missing except block

* feat: Add default app instance in server module for easier uvicorn startup

* docs: Add README.md with server and RGC tool documentation

* remove unused files

* refactor: Remove unsupported type annotation in registry.py

* refactor: Move ExperimentRegistry to coaching module and add Experiment class

* fix: Add missing CompositeDataset import in test_registry.py

* refactor: Implement lazy ASGI app creation for server initialization

* feat: Add health check command to RGC CLI for server connection

* feat: Add version tracking support to CompositeDataset

* feat: Add DatasetVersionManager for tracking dataset versions

* feat: Add entry_id metadata and score_answer_with_id method to CompositeDataset

* feat: Add entry_id metadata combining version and index

* fix: Resolve undefined variable by storing version_id before use

* test: Add comprehensive unit tests for score_answer_with_id() function

* test: Add comprehensive version tracking test for dataset config updates

* feat: Validate dataset weights are positive in CompositeDataset initialization

* feat: Add weight update and normalization methods to CompositeDataset

* refactor: Centralize weight normalization in CompositeDataset and allow zero-weight datasets

* feat: Add negative weight validation to CompositeDataset constructor

* feat: Add duplicate dataset name check in CompositeDataset and update test

* refactor: Move duplicate dataset name check inside dataset iteration loop

* refactor: Update CompositeDataset weight management to use config as source of truth

* refactor: Move duplicate dataset name check to CompositeConfig.validate()

* test: Update composite dataset weight test assertions and validation

* feat: Add methods to add and remove datasets in CompositeDataset

* refactor: Remove weight normalization and use unnormalized weights directly

* refactor: Remove redundant total weight check in update_dataset_weights

* feat: Add batch generation and scoring endpoints to server

* fix: Import BatchEntry in server.py to resolve undefined name error

* refactor: Update ReasoningGymDataset to use server for batch generation and scoring

* fix: Add missing List and Dict type imports

* feat: Add get_batch() and score_outputs() methods to RGClient

* test: Add unit tests for generate_batch and score_outputs endpoints

* refactor: Add DatasetVersionManager to Experiment class and CompositeDataset constructor

* feat: Add validation for base_index and batch_size in generate_batch endpoint

* refactor: Remove unused BatchRequest type from imports

* refactor: Convert models to use Pydantic exclusively

* test: Update scoring endpoint tests to use correct request model format

* refactor: Rename ScoreItem to AnswerItem and update related code

* feat: Update scoring endpoint to return ordered ScoringResponse with scores and entry_ids

* fix: Add missing ScoringResponse import in server.py

* move verl ppo sample with server into own file

* refactor: Use Pydantic models for get_batch() and score_outputs() in RGClient

* refactor: Update client methods to use Pydantic models for type safety

* refactor: Use Pydantic models for experiment and dataset config operations

* refactor: Clean up duplicate methods and improve error handling in main.py

* first bits of rg server use for verl

* refactor: Optimize scoring with single HTTP request in _score_output

* fix: Correct experiment creation with ExperimentCreate object

* grpo tests with server
2025-02-19 22:41:33 +01:00
joesharratt1229
a4419d6e4b adjusted geom prompt 2025-02-19 19:52:18 +00:00
joesharratt1229
ab44ec6fdd updated geometry 2025-02-19 18:38:36 +00:00
joesharratt1229
831822e899 added zebra 2025-02-19 18:13:03 +00:00
joesharratt1229
52cfca5f73 added colour cube score answer impl 2025-02-19 18:12:31 +00:00
joesharratt1229
9a5ed19eba cleaned up caesar cipher 2025-02-19 18:11:59 +00:00
Rich Jones
17ba950c1a implement decimal precision 2025-02-19 12:30:07 +01:00
Zafir Stojanovski
f9a3fd4ddf number format 2025-02-19 11:41:06 +01:00
vncntt
60cedc62dd decimal_chain_sum 2025-02-19 01:51:10 -08:00
Andreas Koepf
667d088f55 remove redundant assert in ChainSumConfig.validate() 2025-02-19 09:42:32 +01:00
Rich Jones
59229bd2d2 Merge branch 'rich/decimalmath' of github.com:open-thought/reasoning-gym into rich/decimalmath 2025-02-19 03:34:57 +01:00
Rich Jones
19b697c89a [wip] more flexible api 2025-02-19 03:29:40 +01:00
theblackcat102
9a2e9e949e [fix] normalize to <answer></answer> 2025-02-19 08:40:31 +08:00
Andreas Köpf
f2e86795eb
Merge pull request #161 from olliestanley/fix/sudoku-unique
Fix Sudoku generator for uniqueness, implement scoring
2025-02-18 22:55:43 +01:00
Oliver
75802c6a1c Add docstring 2025-02-18 21:38:46 +00:00
Oliver
b95ed7fbad Remove now redundant is_valid function 2025-02-18 21:37:37 +00:00
Oliver
5003357425 Remove comment 2025-02-18 21:32:15 +00:00
Oliver
56da1f5dcf Optimise Sudoku uniqueness checks 2025-02-18 21:30:59 +00:00
Oliver
7d8fe8b5d9 Fix Sudoku generator uniqueness and scoring 2025-02-18 21:02:49 +00:00
Rich Jones
2532cdce8e
Merge branch 'main' into rich/decimalmath 2025-02-18 20:53:36 +01:00
Oliver
473368bbea Tweak mini sudoku config 2025-02-18 18:46:14 +00:00
Oliver
fa773115b9 Tweak mini sudoku config 2025-02-18 18:43:19 +00:00
Oliver
32928bd77b Tweak num_empty logic 2025-02-18 18:36:12 +00:00
Oliver
9e3f4e806a Ensure unique mini sudokus 2025-02-18 18:31:30 +00:00
Rich Jones
46cdfc71cf lint 2025-02-18 19:22:03 +01:00
Rich Jones
80d8dbcc36 decimal math 2025-02-18 19:20:33 +01:00
theblackcat102
bbc31e4291 [fix] pre-commit fix 2025-02-18 21:48:54 +08:00
theblackcat102
c612e2abc1 [feat] add test case 2025-02-18 21:45:51 +08:00
theblackcat102
f27746be17 Merge remote-tracking branch 'upstream/main' into cryptarithm 2025-02-18 21:34:42 +08:00
theblackcat102
288f632c5c [feat] added score_answer function 2025-02-18 21:33:14 +08:00
Zafir Stojanovski
4787516616 lint 2025-02-18 14:24:07 +01:00
Zafir Stojanovski
49c4115eaf update generation of input string 2025-02-18 14:23:05 +01:00
Zafir Stojanovski
525c9f6378 Merge branch 'main' of https://github.com/open-thought/reasoning-gym into env/palindrome-partitioning 2025-02-18 14:08:00 +01:00
Oliver
eb708e88b3 Constrain reward 2025-02-17 19:20:45 +00:00
Oliver
1d0cad46f2 Formatting/scoring improvements for BF & family 2025-02-17 19:08:15 +00:00
Oliver
c512d86a86 Cleanup question & add scoring for mini sudoku 2025-02-17 18:37:07 +00:00
Andreas Köpf
79c5e53ef0
Merge pull request #147 from Adefioye/koko/question-template-tinkering
Tweaking some question templates
2025-02-17 18:22:49 +01:00
Andreas Köpf
8b2486ab03
Merge pull request #150 from zafstojano/fix/rectangle-count
fix(env): Rectangle Count
2025-02-17 18:22:35 +01:00
Andreas Köpf
aab1640735
Merge pull request #149 from zafstojano/fix/base-conversion
fix(env): Base Conversion
2025-02-17 18:21:39 +01:00
Andreas Koepf
203394314e minor formatting changes 2025-02-17 18:20:18 +01:00
Andreas Köpf
5c89cb872f
Merge pull request #106 from tohskai/multivariate-polynomial-multiplication
Better support for multivariate polynomials in PolynomialMultiplicationDataset
2025-02-17 18:08:36 +01:00