mosaicml / llm-foundry

LLM training code for Databricks foundation models
https://www.databricks.com/blog/introducing-dbrx-new-state-art-open-llm
Apache License 2.0
4.06k stars 531 forks source link

URL not found #79

Closed dariocazzani closed 1 year ago

dariocazzani commented 1 year ago

I am getting:

huggingface_hub.utils._errors.HfHubHTTPError: 404 Client Error: Not Found for url: https://huggingface.co/api/models/mosaicml/mpt-7b-chat 
codestar12 commented 1 year ago

Could you provide some more details here? Where was this? What were you trying to do?

dariocazzani commented 1 year ago

Yes, this is the snippet of code I am running:

import transformers
model = transformers.AutoModelForCausalLM.from_pretrained(
  'mosaicml/mpt-7b-chat',
  trust_remote_code=True
) 

Yesterday it worked, this morning it doesn't.

abhi-mosaic commented 1 year ago

Hi @dariocazzani , I think this is a transient HF Hub error, their API occasionally goes down. Could you try it once more? I am seeing success when I visit that URL:

{"_id":"64544621ce1cc3ed5fe64629","id":"mosaicml/mpt-7b-chat","modelId":"mosaicml/mpt-7b-chat","author":"mosaicml","sha":"fa9345560420e2111498f87799ea7dd31cbd647e","lastModified":"2023-05-06T13:46:24.000Z","private":false,"disabled":false,"gated":false,"pipeline_tag":"text-generation","tags":["pytorch","mpt","text-generation","dataset:jeffwan/sharegpt_vicuna","dataset:Hello-SimpleAI/HC3","dataset:tatsu-lab/alpaca","dataset:Anthropic/hh-rlhf","dataset:victor123/evol_instruct_70k","arxiv:2205.14135","arxiv:2108.12409","arxiv:2010.04245","transformers","Composer","MosaicML","llm-foundry","license:cc-by-nc-sa-4.0","has_space"],"downloads":11793,"library_name":"transformers","widgetData":[{"text":"My name is Julien and I like to"},{"text":"My name is Thomas and my main"},{"text":"My name is Mariama, my favorite"},{"text":"My name is Clara and I am"},{"text":"My name is Lewis and I like to"},{"text":"My name is Merve and my favorite"},{"text":"My name is Teven and I am"},{"text":"Once upon a time,"}],"likes":219,"model-index":null,"config":{"architectures":["MPTForCausalLM"],"model_type":"mpt"},"cardData":{"license":"cc-by-nc-sa-4.0","datasets":["jeffwan/sharegpt_vicuna","Hello-SimpleAI/HC3","tatsu-lab/alpaca","Anthropic/hh-rlhf","victor123/evol_instruct_70k"],"tags":["Composer","MosaicML","llm-foundry"],"inference":false},"transformersInfo":{"auto_model":"AutoModelForCausalLM","pipeline_tag":"text-generation"},"spaces":["mosaicml/mpt-7b-chat","h2oai/h2ogpt-chatbot","h2oai/h2ogpt-chatbot2","lukesteuber/textual","AlekseyKorshuk/model-evaluation","wsvn53/mpt-7b-chat"],"siblings":[{"rfilename":".gitattributes"},{"rfilename":"README.md"},{"rfilename":"adapt_tokenizer.py"},{"rfilename":"attention.py"},{"rfilename":"blocks.py"},{"rfilename":"config.json"},{"rfilename":"configuration_mpt.py"},{"rfilename":"generation_config.json"},{"rfilename":"hf_prefixlm_converter.py"},{"rfilename":"meta_init_context.py"},{"rfilename":"modeling_mpt.py"},{"rfilename":"norm.py"},{"rfilename":"param_init_fns.py"},{"rfilename":"pytorch_model-00001-of-00002.bin"},{"rfilename":"pytorch_model-00002-of-00002.bin"},{"rfilename":"pytorch_model.bin.index.json"},{"rfilename":"special_tokens_map.json"},{"rfilename":"tokenizer.json"},{"rfilename":"tokenizer_config.json"}]}
dariocazzani commented 1 year ago

@abhi-mosaic Thank you, it seems like it was the case :)