Skip to content
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

StageError: groq-devtools>=0.9.2.1 is a required dependency for this part of GroqFlow. However, groq-devtools was not found. Please contact [email protected] to get access to groq-devtools. #30

Closed
jlchereau opened this issue May 1, 2024 · 1 comment

Comments

@jlchereau
Copy link

Running the sample https://github.com/groq/groqflow/blob/main/examples/hummingbird/randomforest.py on Google Colab.

Building "colab_kernel_launcher"
      Converting model to ONNX with Hummingbird   
      Optimizing ONNX file   
      Checking for Op support   
      Compiling model   
      Assembling model   
/usr/local/lib/python3.10/dist-packages/sklearn/experimental/enable_hist_gradient_boosting.py:16: UserWarning: Since version 1.0, it is not needed to import enable_hist_gradient_boosting anymore. HistGradientBoostingClassifier and HistGradientBoostingRegressor are now stable and can be normally imported from sklearn.ensemble.
  warnings.warn(
/usr/local/lib/python3.10/dist-packages/sklearn/utils/deprecation.py:103: FutureWarning: Attribute `n_features_` was deprecated in version 1.0 and will be removed in 1.2. Use `n_features_in_` instead.
  warnings.warn(msg, category=FutureWarning)
    ✓ Converting model to ONNX with Hummingbird   
    ✓ Optimizing ONNX file   
/usr/lib/python3.10/multiprocessing/popen_fork.py:66: RuntimeWarning: os.fork() was called. os.fork() is incompatible with multithreaded code, and JAX is multithreaded, so this will likely lead to a deadlock.
  self.pid = os.fork()
    × Checking for Op support   

Error: groq-devtools>=0.9.2.1 is a required dependency for this part of GroqFlow. However, groq-devtools was not found. Please contact [[email protected]](mailto:[email protected]) to get access to groq-devtools.

▄██████████████▄▐█▄▄▄▄█▌
██████▌▄▌▄▐▐▌███▌▀▀██▀▀
████▄█▌▄▌▄▐▐▌▀███▄▄█▌
▄▄▄▄▄██████████████




---------------------------------------------------------------------------
StageError                                Traceback (most recent call last)
[<ipython-input-6-16e63a2d4993>](https://localhost:8080/#) in <cell line: 4>()
      2 
      3 # Construire un modèle pour Groq
----> 4 gq_clf = groqit(clf, {'input_0': X_test})
      5 
      6 # Rapport

6 frames
[/usr/local/lib/python3.10/dist-packages/groqflow/justgroqit/groqit.py](https://localhost:8080/#) in groqit(model, inputs, build_name, cache_dir, monitor, rebuild, compiler_flags, assembler_flags, num_chips, topology, groqview, sequence, quantization_samples)
    123 
    124     sequence_locked.show_monitor(config, state.monitor)
--> 125     state = sequence_locked.launch(state)
    126 
    127     if state.build_status == of_build.Status.SUCCESSFUL_BUILD:

[/usr/local/lib/python3.10/dist-packages/onnxflow/justbuildit/stage.py](https://localhost:8080/#) in launch(self, state)
    281 
    282                 # Run the stage
--> 283                 state = stage.fire_helper(state)
    284 
    285                 # Collect telemetry about the stage

[/usr/local/lib/python3.10/dist-packages/onnxflow/justbuildit/stage.py](https://localhost:8080/#) in fire_helper(self, state)
    117         try:
    118             sys.stdout = build.Logger(self.logfile_path)
--> 119             state = self.fire(state)
    120             sys.stdout = sys.stdout.terminal
    121 

[/usr/local/lib/python3.10/dist-packages/groqflow/justgroqit/export.py](https://localhost:8080/#) in fire(self, state)
     39     def fire(self, state: build.GroqState):
     40 
---> 41         sdk.check_dependencies(require_devtools=True, exception_type=exp.StageError)
     42 
     43         # TODO: validate this input

[/usr/local/lib/python3.10/dist-packages/groqflow/common/sdk_helpers.py](https://localhost:8080/#) in check_dependencies(require_devtools, require_runtime, exception_type)
    276         # Only check for the package that is required
    277         if require_devtools:
--> 278             validate_devtools(
    279                 os_version=os_version,
    280                 required=require_devtools,

[/usr/local/lib/python3.10/dist-packages/groqflow/common/sdk_helpers.py](https://localhost:8080/#) in validate_devtools(os_version, required, exception_type)
    196     version = _installed_package_version("groq-devtools", os_version)
    197     hint = "Please contact [[email protected]](mailto:[email protected]) to get access to groq-devtools."
--> 198     version_is_valid(version, required, "groq-devtools", exception_type, hint)
    199 
    200 

[/usr/local/lib/python3.10/dist-packages/groqflow/common/sdk_helpers.py](https://localhost:8080/#) in version_is_valid(sdkv, required, requirement_name, exception_type, hint)
    154     if not sdkv and required:
    155         msg = msg + f". However, {requirement_name} was not found. "
--> 156         raise exception_type(msg + hint)
    157 
    158     # Package found, but version is not acceptable

StageError: groq-devtools>=0.9.2.1 is a required dependency for this part of GroqFlow. However, groq-devtools was not found. Please contact [[email protected]](mailto:[email protected]) to get access to groq-devtools.

@jlchereau
Copy link
Author

Requires an account on https://support.groq.com/#/register

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant