Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
args:
- '-w'
- '--skip="*.txt,pylintrc,.*,src/MaxText/assets/*"'
- '-L ND,nd,sems,TE,ROUGE,rouge,astroid'
- '-L ND,nd,sems,TE,ROUGE,rouge,astroid,ags,dout'
- '.'
additional_dependencies:
- tomli
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/api_server/server_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class CompletionRequest(SamplingParams):
logprobs: Optional[int] = None

@field_validator("logprobs")
def validate_logprobs(cls, v):
def validate_logprobs(self, v):
if v is not None and v < 0:
raise ValueError("logprobs must be a non-negative integer if provided.")
return v
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/grpo_with_pathways.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ The overview of the demo script ~/maxtext/src/MaxText/examples/grpo_llama3_1_70b

1. We load a policy model and a reference model. Both are copies of `Llama3.1-70b-Instruct`.
2. Evaluate the policy model's performance on GSM8K math reasoning benchmark.
3. Train the policy model using GRPO with potentially different meshes for trainer and rollout dependending on the parameters `TRAINER_DEVICES_FRACTION` and `SAMPLER_DEVICES_FRACTION`. If we set both of these to `1.0`, the entire (same) mesh will be used for both trainer and rollout. If we set say `TRAINER_DEVICES_FRACTION=0.5` and `SAMPLER_DEVICES_FRACTION=0.5`, the first half of the devices will be used for trainer and the second half will be used for rollout
3. Train the policy model using GRPO with potentially different meshes for trainer and rollout depending on the parameters `TRAINER_DEVICES_FRACTION` and `SAMPLER_DEVICES_FRACTION`. If we set both of these to `1.0`, the entire (same) mesh will be used for both trainer and rollout. If we set say `TRAINER_DEVICES_FRACTION=0.5` and `SAMPLER_DEVICES_FRACTION=0.5`, the first half of the devices will be used for trainer and the second half will be used for rollout
4. Evaluate the policy model's performance on GSM8K math reasoning benchmark after the post-training with GRPO.
Loading
Loading