Giter Club home page Giter Club logo

Comments (4)

yananchen1989 avatar yananchen1989 commented on September 26, 2024 1

@njhill thanks. it works.
version 0.4.2
llm = LLM(model= model_local_path, dtype='float16', HF_HUB_OFFLINE=1)

from vllm.

njhill avatar njhill commented on September 26, 2024

@yananchen1989 what version are you using? Changes were made recently to not require a connection to HF hub if the model is in the local cache. And you can prevent it from attempting to connect at all by setting HF_HUB_OFFLINE=1.

from vllm.

njhill avatar njhill commented on September 26, 2024

@yananchen1989 actually HF_HUB_OFFLINE=1 is an env variable, not an arg passed to the LLM constructor.

You should be able to remove that, it will still work because it should still fall back to local cache if it can't contact HF hub.

from vllm.

calee88 avatar calee88 commented on September 26, 2024

My vllm version is 0.5.0.post1, and it shows me an error when I don't use HF_HUB_OFFLINE=1. Maybe it is because I'm using a private repository. And I'm using AsyncLLMEngine, so it is another possibility that causes an error.

from vllm.

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.