From 3982ab9745aa4db1ed33977d064f38fb9a9d9343 Mon Sep 17 00:00:00 2001 From: Farouk Adeleke Date: Wed, 24 Dec 2025 00:33:38 -0800 Subject: [PATCH] (no commit message) --- config.json | 4 ++-- main.py | 6 +++--- program.json | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/config.json b/config.json index 9a4c2bc..f9db522 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "model": "openai//models/checkpoint-5", "api_base": "https://modaic-ai--grpo-demo-serve.modal.run/v1", - "max_tokens": 1024, - "temperature": 0.7 + "max_tokens": 10000, + "temperature": 2 } \ No newline at end of file diff --git a/main.py b/main.py index be1f404..f16b8ee 100644 --- a/main.py +++ b/main.py @@ -4,8 +4,8 @@ from modaic import PrecompiledProgram, PrecompiledConfig class CodeGeneratorConfig(PrecompiledConfig): model : str = "openai//models/checkpoint-5" api_base : str = "https://modaic-ai--grpo-demo-serve.modal.run/v1" - max_tokens : int = 1024 - temperature : float = 0.7 + max_tokens : int = 10000 + temperature : float = 2 class CodeGeneration(dspy.Signature): @@ -32,6 +32,6 @@ class CodeGenerator(PrecompiledProgram): code_generator = CodeGenerator(CodeGeneratorConfig()) print(code_generator(query="Write a python function that returns the sum of two numbers.").code) -code_generator.push_to_hub("modaic/code-generator-trl-grpo", with_code=True, tag="v1") +code_generator.push_to_hub("modaic/code-generator-trl-grpo", with_code=True, tag="v2") \ No newline at end of file diff --git a/program.json b/program.json index d2b1536..2f9d931 100644 --- a/program.json +++ b/program.json @@ -24,8 +24,8 @@ "finetuning_model": null, "launch_kwargs": {}, "train_kwargs": {}, - "temperature": 0.7, - "max_tokens": 1024, + "temperature": 2, + "max_tokens": 10000, "api_base": "https://modaic-ai--grpo-demo-serve.modal.run/v1" } },