-
Notifications
You must be signed in to change notification settings - Fork 559
add smooth factor flag #951
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
Conversation
|
this covers all the files that use % grep RateTracker xla/test
grep: cpp: Is a directory
test_train_cifar.py: tracker = xm.RateTracker(smooth_factor=FLAGS.smooth_factor)
test_train_imagenet.py: tracker = xm.RateTracker(smooth_factor=FLAGS.smooth_factor)
test_train_mnist.py: tracker = xm.RateTracker(smooth_factor=FLAGS.smooth_factor) |
|
Can't we choose a sane value instead? |
|
I was thinking one may want to not smooth at all. AFAIK that's what we do on the TF side. |
Does a 0.0 smoothing achieves stable results? |
|
I mean, sometimes we will want to smooth, sometimes not, depending on personal preference and also how variable the rate is w// the model and dataset in hand. I'm not unhappy with the current value actually. Happy to drop the pr. |
Do you think then setting |
|
That depends on how frequently you call |
|
Another approach is to leave models as they are, and instead of the usual 0.8 default, use something like: xu.getenv_as('RATE_TRACKER_SMOOTHING', float, 0.8) |
This will give us the option to disable rate smoothing if we so desire.
0.8 is the default value from xla_model.py