Skip to content

Breaks in Colab #1312

@neverix

Description

@neverix

Environment

Colab

  • OS: [Ubuntu 18.04]
  • Hardware (GPU, or instance type): [T4, not Pro]

To reproduce

Steps to reproduce the behavior:

  1. Install mosaicml in Colab
  2. Create a Trainer with any model

Expected behavior

Constructing a Trainer does not produce an UnsupportedOperation error.

Currently, it errors out like this:

[/usr/local/lib/python3.7/dist-packages/composer/core/engine.py](https://localhost:8080/#) in _run_callbacks(self, event)
    372             with ctx:
    373                 self._debug_log(event, f'Running callback {type(cb).__name__}')
--> 374                 cb.run_event(event, self.state, self.logger)
    375 
    376     def __del__(self):

[/usr/local/lib/python3.7/dist-packages/composer/core/callback.py](https://localhost:8080/#) in run_event(self, event, state, logger)
     94         """
     95         event_cb = getattr(self, event.value)
---> 96         return event_cb(state, logger)
     97 
     98     def init(self, state: State, logger: Logger) -> None:

[/usr/local/lib/python3.7/dist-packages/composer/loggers/progress_bar_logger.py](https://localhost:8080/#) in init(***failed resolving arguments***)
    283             keys_to_log=[],
    284             bar_format='{bar:-1b}',
--> 285             timestamp_key='',
    286         )
    287 

[/usr/local/lib/python3.7/dist-packages/composer/loggers/progress_bar_logger.py](https://localhost:8080/#) in __init__(self, total, position, bar_format, file, metrics, keys_to_log, timestamp_key, unit)
     41         self.timestamp_key = timestamp_key
     42         self.file = file
---> 43         is_atty = os.isatty(self.file.fileno())
     44         self.pbar = tqdm.auto.tqdm(
     45             total=total,

Additional context

This seems to only be an issue in Colab and not in CLI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions