Skip to content

Commit

Permalink
Patch pydantic release (#99)
Browse files Browse the repository at this point in the history
* fix

* fix

* patch pydantic release

* update requirements.txt

* update reproducibility examples

* update configs
  • Loading branch information
clementchadebec committed Jul 19, 2023
1 parent 4844790 commit ca55647
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/scripts/configs/cifar10/base_training_config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "BaseTrainerConfig",
"output_dir": "my_models_on_cifar",
"batch_size": 100,
"per_device_train_batch_size": 100,
"per_device_eval_batch_size": 100,
"num_epochs": 100,
"learning_rate": 1e-4,
"steps_saving": null,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "BaseTrainerConfig",
"output_dir": "reproducibility/dsprites",
"batch_size": 1000,
"per_device_train_batch_size": 1000,
"per_device_eval_batch_size": 1000,
"num_epochs": 50,
"learning_rate": 1e-3,
"steps_saving": null,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "BaseTrainerConfig",
"output_dir": "reproducibility/dsprites",
"batch_size": 64,
"per_device_train_batch_size": 64,
"per_device_eval_batch_size": 64,
"num_epochs": 500,
"learning_rate": 1e-3,
"steps_saving": 50,
Expand Down
3 changes: 2 additions & 1 deletion examples/scripts/configs/mnist/base_training_config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "BaseTrainerConfig",
"output_dir": "my_models_on_mnist",
"batch_size": 100,
"per_device_train_batch_size": 100,
"per_device_eval_batch_size": 100,
"num_epochs": 100,
"learning_rate": 1e-3,
"steps_saving": null,
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cloudpickle>=2.1.0
imageio
numpy>=1.19
pydantic>=1.8.2
pydantic==1.8.2
scikit-learn
scipy>=1.7.1
torch>=1.10.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"cloudpickle>=2.1.0",
"imageio",
"numpy>=1.19",
"pydantic>=1.8.2",
"pydantic==1.8.2",
"scikit-learn",
"scipy>=1.7.1",
"torch>=1.10.1",
Expand Down

0 comments on commit ca55647

Please sign in to comment.