jaxline icon indicating copy to clipboard operation
jaxline copied to clipboard

platform flags

Open jameschapman19 opened this issue 3 years ago • 3 comments

I didn't have problems using debuggers when the form was:

FLAGS = flags.FLAGS

and later on:

# Make sure the required fields are available in the config.
base_config.validate_config(FLAGS.config)

But I get errors with the new version:

# Make sure the required fields are available in the config.
config = _CONFIG.value
base_config.validate_config(config)

_CONFIG is None seems to be the problem. I'm using debugger from either PyCharm or VSCode.

jameschapman19 avatar Nov 09 '21 16:11 jameschapman19

Been having the same issue

awehrs avatar Nov 19 '21 03:11 awehrs

the problem is ml_collections, the verison on pip is dated (even though it's 0.1.0 as required by jaxline)

install directly from source pip install git+https://github.com/google/ml_collections

someone from Google needs to push a new version of ml_collections to pip, and update the requirements here

johnnytshi avatar Dec 13 '21 07:12 johnnytshi

The perceiver example from here works using absl's app:

from absl import app

# ...
# Experiment code
# ...

if __name__ == '__main__':
  flags.mark_flag_as_required('config')
  app.run(functools.partial(platform.main, Experiment))

ElPiloto avatar Jan 12 '22 20:01 ElPiloto