meta-llama / llama3

The official Meta Llama 3 GitHub site
Other
21.42k stars 2.14k forks source link

403 Forbidden error at params.json stage in downloading process. #201

Open deepakdhiman7 opened 3 weeks ago

deepakdhiman7 commented 3 weeks ago

Getting 403 Forbidden error at params.json stage in downloading process

Description

I am getting 403 Forbidden error at params.json stage in downloading process. I followed below steps: 1) Filled the form and received email with authentication URL from Meta. 2) Cloned the Git repo https://github.com/meta-llama/llama3.git 3) Executed "download.sh" file with command "bash download.sh" 4) Entered the URL received in email and mentioned the model "Meta-Llama-3-8B"

Received forbidden error at params.json stage in downloading process. Logs mentioned below:

bash download.sh Enter the URL from email: https://download6.llamameta.net/*?Policy=eyJTdGF0ZW1lbnQiOlt7InVuaXF1ZV9oYXNoIjoibHE0dzNpaWIzYzZvbzRieTExc24wMmlyIiwiUmVzb3VyY2UiOiJodHRwczpcL1wvZG93bmxvYWQ2LmxsYW1hbWV0YS5uZXRcLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3MTUzMTI0NDJ9fX1dfQ__&Signature=E7Wsr30jVlc58PWKDc0uY1wxQwhNA4TXjxu0i7tzf3k52HCD8KwOwbzxLQF6PKF8V7WXQCQf%7EDezzR3Jjx1LjcbbOlpX1mxj6YnihWdrmyI1q%7ED9nQQggxZyPpEuh7qFvLF7xmMNprc1uywyDl%7EpVmDhILbonwrWV-pAaabq-1h6qWVqQH2%7E4qetbGA9XH5Zt10MQIFwjSU8zj0Hq%7EbhtoRwyq4B7lCoRa8PHxvITlfMLq4tPneMUNBw24urh4QmgiyaFJAlmXCjT9HPBV7VE2BCt0Yxql-DNKcZzi-JsH%7Eh%7ETXF42hEA8OwPPXJ7S39P7VZh7ROTTkUb5dNtazAIA__&Key-Pair-Id=K15QRJLYKIFSLZ&Download-Request-ID=1793094097841313

Enter the list of models to download without spaces (8B,8B-instruct,70B,70B-instruct), or press Enter for all: Meta-Llama-3-8B Downloading LICENSE and Acceptable Usage Policy --2024-05-09 05:38:58-- https://download6.llamameta.net/LICENSE?Policy=eyJTdGF0ZW1lbnQiOlt7InVuaXF1ZV9oYXNoIjoibHE0dzNpaWIzYzZvbzRieTExc24wMmlyIiwiUmVzb3VyY2UiOiJodHRwczpcL1wvZG93bmxvYWQ2LmxsYW1hbWV0YS5uZXRcLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3MTUzMTI0NDJ9fX1dfQ__&Signature=E7Wsr30jVlc58PWKDc0uY1wxQwhNA4TXjxu0i7tzf3k52HCD8KwOwbzxLQF6PKF8V7WXQCQf%7EDezzR3Jjx1LjcbbOlpX1mxj6YnihWdrmyI1q%7ED9nQQggxZyPpEuh7qFvLF7xmMNprc1uywyDl%7EpVmDhILbonwrWV-pAaabq-1h6qWVqQH2%7E4qetbGA9XH5Zt10MQIFwjSU8zj0Hq%7EbhtoRwyq4B7lCoRa8PHxvITlfMLq4tPneMUNBw24urh4QmgiyaFJAlmXCjT9HPBV7VE2BCt0Yxql-DNKcZzi-JsH%7Eh%7ETXF42hEA8OwPPXJ7S39P7VZh7ROTTkUb5dNtazAIA__&Key-Pair-Id=K15QRJLYKIFSLZ&Download-Request-ID=1793094097841313 Resolving download6.llamameta.net (download6.llamameta.net)... 18.172.64.33, 18.172.64.114, 18.172.64.7, ... Connecting to download6.llamameta.net (download6.llamameta.net)|18.172.64.33|:443... connected. HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

The file is already fully retrieved; nothing to do.

--2024-05-09 05:38:58-- https://download6.llamameta.net/USE_POLICY?Policy=eyJTdGF0ZW1lbnQiOlt7InVuaXF1ZV9oYXNoIjoibHE0dzNpaWIzYzZvbzRieTExc24wMmlyIiwiUmVzb3VyY2UiOiJodHRwczpcL1wvZG93bmxvYWQ2LmxsYW1hbWV0YS5uZXRcLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3MTUzMTI0NDJ9fX1dfQ__&Signature=E7Wsr30jVlc58PWKDc0uY1wxQwhNA4TXjxu0i7tzf3k52HCD8KwOwbzxLQF6PKF8V7WXQCQf%7EDezzR3Jjx1LjcbbOlpX1mxj6YnihWdrmyI1q%7ED9nQQggxZyPpEuh7qFvLF7xmMNprc1uywyDl%7EpVmDhILbonwrWV-pAaabq-1h6qWVqQH2%7E4qetbGA9XH5Zt10MQIFwjSU8zj0Hq%7EbhtoRwyq4B7lCoRa8PHxvITlfMLq4tPneMUNBw24urh4QmgiyaFJAlmXCjT9HPBV7VE2BCt0Yxql-DNKcZzi-JsH%7Eh%7ETXF42hEA8OwPPXJ7S39P7VZh7ROTTkUb5dNtazAIA__&Key-Pair-Id=K15QRJLYKIFSLZ&Download-Request-ID=1793094097841313 Resolving download6.llamameta.net (download6.llamameta.net)... 18.172.64.8, 18.172.64.7, 18.172.64.114, ... Connecting to download6.llamameta.net (download6.llamameta.net)|18.172.64.8|:443... connected. HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

The file is already fully retrieved; nothing to do.

Downloading --2024-05-09 05:38:59-- https://download6.llamameta.net//params.json?Policy=eyJTdGF0ZW1lbnQiOlt7InVuaXF1ZV9oYXNoIjoibHE0dzNpaWIzYzZvbzRieTExc24wMmlyIiwiUmVzb3VyY2UiOiJodHRwczpcL1wvZG93bmxvYWQ2LmxsYW1hbWV0YS5uZXRcLyoiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3MTUzMTI0NDJ9fX1dfQ__&Signature=E7Wsr30jVlc58PWKDc0uY1wxQwhNA4TXjxu0i7tzf3k52HCD8KwOwbzxLQF6PKF8V7WXQCQf%7EDezzR3Jjx1LjcbbOlpX1mxj6YnihWdrmyI1q%7ED9nQQggxZyPpEuh7qFvLF7xmMNprc1uywyDl%7EpVmDhILbonwrWV-pAaabq-1h6qWVqQH2%7E4qetbGA9XH5Zt10MQIFwjSU8zj0Hq%7EbhtoRwyq4B7lCoRa8PHxvITlfMLq4tPneMUNBw24urh4QmgiyaFJAlmXCjT9HPBV7VE2BCt0Yxql-DNKcZzi-JsH%7Eh%7ETXF42hEA8OwPPXJ7S39P7VZh7ROTTkUb5dNtazAIA__&Key-Pair-Id=K15QRJLYKIFSLZ&Download-Request-ID=1793094097841313 Resolving download6.llamameta.net (download6.llamameta.net)... 18.172.64.8, 18.172.64.7, 18.172.64.114, ... Connecting to download6.llamameta.net (download6.llamameta.net)|18.172.64.8|:443... connected. HTTP request sent, awaiting response... 403 Forbidden 2024-05-09 05:39:00 ERROR 403: Forbidden.

Runtime Environment

Additional context Please suggest what should I do to resolve this?

Thanks

Llama3_Model_Downlaod_Error
RabiaSamad commented 3 weeks ago

asked for another url through this link https://llama.meta.com/llama-downloads/

and then download through new URL link provided by Meta

deepakdhiman7 commented 3 weeks ago

asked for another url through this link https://llama.meta.com/llama-downloads/

and then download through new URL link provided by Meta

Yes, I did. Still same issue. However I was able to access via HuggingFace, after authenticating hugging face token.

John-WL commented 2 weeks ago

Same issue, I get a couple of 416 followed by a 403 Forbidden.

victorwrage commented 1 week ago

I encountered a similar problem because my download link was more than 24 hours old. Just regenerate it. https://github.com/meta-llama/llama3/blob/main/README.md Remember that the links expire after 24 hours and a certain amount of downloads. You can always re-request a link if you start seeing errors such as 403: Forbidden.

John-WL commented 1 week ago

My link was around 5 minutes to 10 minutes old, and I tried with 3 different links that were freshly generated. All of these fresh links gave me the same errors.

YuleZhang commented 1 week ago

I download success after using proxy, try to set your own proxy address, examples are as bellow. On Mac:

export http_proxy="http://127.0.0.1:7890"
export https_proxy="http://127.0.0.1:7890"

then try wget to download again.

On Windows: write a script by python requests:

import requests
proxies = {
    "http": "http://127.0.0.1:7890",
    "https": "http://127.0.0.1:7890"
}
requests.get(url, stream=True, headers=headers, proxies=proxies)

you can find url in ./download.sh, read it and compose your own model url download address or just use echo to check. A python version of download with proxy can be view at https://gist.github.com/YuleZhang/576e6f56ead6578e731343826a5ccc87