-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Require datasets>=4.7.0 for Json dtype to prevent insertion of None values #5376
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
Changes from 5 commits
637d17f
f1334d3
4076574
47f469a
1e911a9
2238f2a
8a167c0
3fd35ae
05bc73f
27ba622
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -91,7 +91,7 @@ def main(test_size, push_to_hub, repo_id): | |
| {"reasoning_effort": "high", "model_identity": "You are Tiny ChatGPT, a tiny language model."}, | ||
| {"reasoning_effort": "low", "model_identity": "You are Tiny ChatGPT, a tiny language model."}, | ||
| ] | ||
| }) | ||
| }, on_mixed_types="use_json") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here it's because we mix turns with and without "thinking" 👍 |
||
| language_modeling_dataset = language_modeling_dataset.train_test_split(test_size=test_size, shuffle=False) | ||
| if push_to_hub: | ||
| language_modeling_dataset.push_to_hub(repo_id, config_name="language_modeling") | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -222,7 +222,7 @@ def get_wind_conditions(city: str, unit: str) -> tuple[int, str]: | |
| json.dumps([start_timer, create_reminder]), | ||
| json.dumps([get_weather_forecast, get_wind_conditions]), | ||
| ] | ||
| }) | ||
| }, on_mixed_types="use_json") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here I'm not sure if it's need,
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oops, I forgot to remove |
||
| language_modeling_dataset = language_modeling_dataset.train_test_split(test_size=test_size, shuffle=False) | ||
| if push_to_hub: | ||
| language_modeling_dataset.push_to_hub(repo_id, config_name="language_modeling") | ||
|
|
@@ -328,7 +328,7 @@ def get_wind_conditions(city: str, unit: str) -> tuple[int, str]: | |
| json.dumps([create_reminder]), | ||
| json.dumps([get_wind_conditions]), | ||
| ], | ||
| }) | ||
| }, on_mixed_types="use_json") | ||
| preference_dataset = preference_dataset.train_test_split(test_size=test_size, shuffle=False) | ||
| if push_to_hub: | ||
| preference_dataset.push_to_hub(repo_id, config_name="preference") | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.