mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-09 19:34:53 +00:00
update readme
This commit is contained in:
parent
7df81c34db
commit
b4455b241b
@ -26,6 +26,7 @@ to power Bloom, BloomZ and MT0-XXL api-inference widgets.
|
|||||||
- [MT0-XXL](https://huggingface.co/bigscience/mt0-xxl)
|
- [MT0-XXL](https://huggingface.co/bigscience/mt0-xxl)
|
||||||
- ~~[Galactica](https://huggingface.co/facebook/galactica-120b)~~ (deactivated)
|
- ~~[Galactica](https://huggingface.co/facebook/galactica-120b)~~ (deactivated)
|
||||||
- [SantaCoder](https://huggingface.co/bigcode/santacoder)
|
- [SantaCoder](https://huggingface.co/bigcode/santacoder)
|
||||||
|
- [GPT-Neox 20B](https://huggingface.co/EleutherAI/gpt-neox-20b): use `--revision refs/pr/13`
|
||||||
|
|
||||||
Other models are supported on a best effort basis using:
|
Other models are supported on a best effort basis using:
|
||||||
|
|
||||||
|
@ -198,11 +198,10 @@ def try_to_load_from_cache(model_name, revision, filename):
|
|||||||
|
|
||||||
# Resolve refs (for instance to convert main to the associated commit sha)
|
# Resolve refs (for instance to convert main to the associated commit sha)
|
||||||
if refs_dir.is_dir():
|
if refs_dir.is_dir():
|
||||||
for p in refs_dir.rglob("*"):
|
revision_file = refs_dir / revision
|
||||||
if str(p).endswith(revision):
|
if revision_file.exists():
|
||||||
with (refs_dir / revision).open() as f:
|
with revision_file.open() as f:
|
||||||
revision = f.read()
|
revision = f.read()
|
||||||
break
|
|
||||||
|
|
||||||
# Check if file is cached as "no_exist"
|
# Check if file is cached as "no_exist"
|
||||||
if (no_exist_dir / revision / filename).is_file():
|
if (no_exist_dir / revision / filename).is_file():
|
||||||
|
Loading…
Reference in New Issue
Block a user