GithubHelp home page GithubHelp logo

Comments (6)

winstxnhdw avatar winstxnhdw commented on August 26, 2024 1

You'll have to clone the repo and build the Docker image without the timeouts. Otherwise, you can just set it to an arbitrarily large value. The model only supports 1024 tokens anyways, so at some point, it shouldn't be taking THAT long to perform its predictions.

from nllb-api.

winstxnhdw avatar winstxnhdw commented on August 26, 2024 1

I have removed the rate limiting module entirely in the latest commit.

from nllb-api.

winstxnhdw avatar winstxnhdw commented on August 26, 2024

That’s really strange. Let me take a look.

from nllb-api.

winstxnhdw avatar winstxnhdw commented on August 26, 2024

Hey, I am not able to replicate your issue. Is your request taking longer than 10 seconds to process?

image

from nllb-api.

winstxnhdw avatar winstxnhdw commented on August 26, 2024

You can try extending the cache timeout variable.

docker run --rm \
  -e APP_PORT=7860 \
  -e CACHE_TIMEOUT=100 \
  -p 7860:7860 \
  -v ./cache:/home/user/.cache \
  ghcr.io/winstxnhdw/nllb-api:main

from nllb-api.

mlevin-dev avatar mlevin-dev commented on August 26, 2024

We tested a clean installation on several different machines (MacOS, Ubuntu), the issue is the same across all of them. The only potential limitation that applies is the abysmal internet connection speed (< 5Mb/s). It seems to me like something is timing out.

Is your request taking longer than 10 seconds to process?

Probably yes, is there any way to disable all the timeouts?

from nllb-api.

Related Issues (16)

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.