Giter Club home page Giter Club logo

Comments (7)

kamranjon avatar kamranjon commented on May 19, 2024 1

@Jeronymous thank you for making the requirements.txt more flexible! This makes it easy to specify a whisper version that works with our environment.

from whisper-timestamped.

Jeronymous avatar Jeronymous commented on May 19, 2024

Thanks for notifying.
Indeed targeting a specific whisper version would be more future-proof.
However, using whisper version 20230306 would be better than the previous version 20230124, because of some bug resolutions that are useful (avoid an infinite loop for instance).

I'm currently testing and for now I don't see any breakage with the new version 20230306.

Can you please clarify what you refer to with "breaks if you don't have a specific environment"? Any specific error message during the setup?

from whisper-timestamped.

kamranjon avatar kamranjon commented on May 19, 2024

@Jeronymous this is the exact error I get:

ERROR: Could not find a version that satisfies the requirement triton>=2.0.0.dev20221202 
(from openai-whisper) (from versions: none)
ERROR: No matching distribution found for triton>=2.0.0.dev20221202

Even just pinning whisper to git+https://github.com/openai/whisper@3e1780f - the commit right before this change would be great.

from whisper-timestamped.

kamranjon avatar kamranjon commented on May 19, 2024

If you are testing on osx you will not see this error, it is a result of this portion of code that was added:

requirements = []
if sys.platform.startswith("linux"):
    triton_requirement = "triton>=2.0.0.dev20221202"
    try:
        import re
        import subprocess
        version_line = subprocess.check_output(["nvcc", "--version"]).strip().split(b"\n")[-1]
        major, minor = re.findall(rb"([\d]+)\.([\d]+)", version_line)[0]
        if (int(major), int(minor)) < (11, 4):
            # the last version supporting CUDA < 11.4
            triton_requirement = "triton==2.0.0.dev20221011"
    except (IndexError, OSError, subprocess.SubprocessError):
        pass
    requirements.append(triton_requirement)
    

I'm a bit surprised that this made it in to main, I wonder if they removed this version? They are now on the official 2.0.0 version as of 4 days ago: https://github.com/openai/triton/releases/tag/v2.0.0 - I think maybe they just forgot to update the dependency before pushing?

from whisper-timestamped.

kamranjon avatar kamranjon commented on May 19, 2024

And for what it's worth i think this is very platform specific - so if you are using an arm image of linux - pip will not be able to find triton as a pip dependency - so this fails. Based on this discussion. From what I can tell, pip does not appear to show versions that are unavailable for an specific platform. -- Versions of Triton past 0.3.0 only have manylinux2014 x86_64 wheels on PyPI

from whisper-timestamped.

Jeronymous avatar Jeronymous commented on May 19, 2024

Even just pinning whisper to git+https://github.com/openai/whisper@3e1780f - the commit right before this change would be great.

This would make sense specifically for ARM linux, before the bug is solved on Whisper side.

I see that you reported the issue well openai/whisper#1048
Let's hope that it gets solved soon.

For now, I see nothing preventing from installing whatever version of whisper works for you, before installing whisper-timestamped.

from whisper-timestamped.

Jeronymous avatar Jeronymous commented on May 19, 2024

OK so in the end:

  • Version 20230306 introduced a breakage on ARM linux, as reported by @kamranjon on openai/whisper#1048
  • It also introduces some bugs, which can be a good reason to use another specific older version
  • Version 20230306 also brings some backward compatibility issues with whisper-timestamped, which is addressed in #53
  • The python requirement of whisper-timestamped was linking openai-whisper package to the github repo, which was forcing to prefer the latest version. This link was removed, so the requirement is more flexible and allow anybody to use any version / checkpoint of Whisper.

from whisper-timestamped.

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.