-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there anyway to load a variable in a config file as a list? #883
Comments
Hi @sizhky, try |
Yes, this works. Thank you. Is there any page in documentation that describes this? You can point me to what could be the best place to add this in docs otherwise. Another parallel request - Is there a way to add multiline strings in the file? This will be best useful for comments/descriptions/changelog type of fields |
This is not in the docs, AFAIK. Towards the end of the usage section would probably be a good idea. Happy to look at the PR if you want to do this!
Yes, like this: [TrainingConfig]
label_names=["x"]
test = """
this is a
test""" The resulting dict is |
I'm training a huggingface code but this is a generic query
The label_names at the bottom is being parsed as a string "['x']" is there a way to read it as a list when parsing?
The text was updated successfully, but these errors were encountered: