Skip to content

Commit

Permalink
convert enum to str when referencing
Browse files Browse the repository at this point in the history
Signed-off-by: Charlie Doern <[email protected]>
  • Loading branch information
cdoern authored and RobotSail committed Jun 25, 2024
1 parent ee76c17 commit 700dad0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/instructlab/training/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ class LoraOptions(BaseModel):
target_modules: list[str] = Field(
default_factory=lambda: ["q_proj", "k_proj", "v_proj", "o_proj"]
)

Check warning on line 77 in src/instructlab/training/config.py

View workflow job for this annotation

GitHub Actions / lint

C0303: Trailing whitespace (trailing-whitespace)
quantize_data_type: QuantizeDataType = QuantizeDataType.NONE

class Config:

Check warning on line 80 in src/instructlab/training/config.py

View workflow job for this annotation

GitHub Actions / lint

C0303: Trailing whitespace (trailing-whitespace)
use_enum_values = True


class DeepSpeedOptions(BaseModel):
"""
Expand Down

0 comments on commit 700dad0

Please sign in to comment.