v1.9.0: Trackio support, Model loading speedup, Minor distributed improvements
We've added support for a trackio, lightweight, π― free experiment tracking Python library built on top of π€ Datasets and Spaces.
Main features are:
space_id.To use it with accelerate, you need to set log_with and initialize the trackers
accelerator = Accelerator(log_with="trackio")
config={"learning_rate": 0.001, "batch_size": 32}
# init_kwargs in order to host the dashboard on spaces
init_kwargs = {"trackio": {"space_id": "hf_username/space_name"}
accelerator.init_trackers("example_project", config=config, init_kwargs=init_kwargs})
Thanks @pcuenca for the integration !
set_module_tensor_to_device Setting tensor while clearing cache is very slow, so we added clear_device option to disable it.
Another small optimization is using non_blocking everywhere and syncing just before returning control to the user. This makes the loading slightly faster.
Accelerator() configuring by @pstjohn in https://github.com/huggingface/accelerate/pull/3677find_executable_batch_size() will no longer halves the batch after every OOM. Instead, we will multiply the batch size by 0.9. This should help user not waste gpu capacity.
Full Changelog: https://github.com/huggingface/accelerate/compare/v1.8.1...v1.9.0
Fetched April 7, 2026