microsoft / microsoft/LLMLingua

[Question]: How to use a manually downloaded model

Open
#125 5 comments 0 reactions 1 assignee View on GitHub

@iofu728 is already working on this.

Since Apr 1, 2024.

question
Dominant language
Python
Stars
6.7k
Forks
428
Avg merge
2d 4h
Merged PRs (30d)
1

Description

Describe the issue

Due to slow network, LLMLingua failed to download the model from huggingface during running.

requests.exceptions.ReadTimeout: (ReadTimeoutError("HTTPSConnectionPool(host='cdn-lfs.huggingface.co', port=443): Read timed out. (read timeout=10)"), '(Request ID: a664234f-7f09-4a97-966a-aafabde074a1)')
model-00001-of-00002.safetensors:   0%|                                                                   | 0.00/9.98G [05:17<?, ?B/s]

Is it possible that I download the model manually in advance and LLMLinggua load the model from a local location?
If it's possible, how to to it?

Thanks in advance!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.