Open vvolhejn opened 1 day ago
Hi @vvolhejn thanks for bringing this up. Avoiding to break bc was what lead to this outcome. This affects all config classes and we should make these changes to all configs simultaneously. Would be happy to review a PR. I am currently working on fixing the unit tests once again so we can test the proposed changes more reliably.
🚀 The feature, motivation and pitch
Config dataclasses like
llama_recipes.configs.training.train_config
should be named using PascalCase, in this caseTrainConfig
. The current naming violates a widely accepted Python convention.It also leads to patterns like
from llama_recipes.configs import train_config as TRAIN_CONFIG
here, where the symbol needs to be renamed upon import to avoid conflicts with atrain_config
variable, which is an instance of thetrain_config
(TRAIN_CONFIG
) class.I'm happy to do the renames but I wanted to hear from the devs first. This change does break backwards compatibility but since
llama-recipes
is currently on version0.0.4
I assume the whole API is still very experimental?Alternatives
No response
Additional context
No response