Code Monkey home page Code Monkey logo

Comments (4)

trevorwelch avatar trevorwelch commented on June 26, 2024

My guess is that the t5x library needs to make an update for backwards compatibility like so: GEM-benchmark/GEM-metrics#69

This seems to be related to python 3.7 vs. 3.8, Colab is currently running 3.7

from mt3.

trevorwelch avatar trevorwelch commented on June 26, 2024

Workaround:

  1. Download a copy of the Colab notebook locally
  2. Find the kernelspec around line 538, replace it like so:
    "kernelspec": {
      "name": "py38",
      "display_name": "Python 3.8"
    }
  1. Upload/import the modified notebook
  2. Add the following to the top of the notebook and run it:
!wget -O mini.sh https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.2-Linux-x86_64.sh
!chmod +x mini.sh
!bash ./mini.sh -b -f -p /usr/local
!conda install -q -y jupyter
!conda install -q -y google-colab -c conda-forge
!python -m ipykernel install --name "py38" --user
  1. sys.version should now show '3.8.1 (default, Jan 8 2020, 22:29:32) \n[GCC 7.3.0]'

  2. Under Runtime select Change runtime type and select Python3.8

The session fails to recognize GPU/TPU but everything else runs, transcription works

from mt3.

olaviinha avatar olaviinha commented on June 26, 2024

Awesome, thanks!

Another workaround appears to be adding the following line to the beginning of filet5x/partitioning.py:

# pylint: disable-next=unused-import

(...live in Colab after t5x installation.)

from mt3.

olaviinha avatar olaviinha commented on June 26, 2024

This problem seems to have magically disappeared without further need to perform either of the workarounds above. Closing.

from mt3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.