Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where can I download the weights of the 7B model? #149

Closed
BenBill2077 opened this issue Mar 7, 2023 · 33 comments
Closed

Where can I download the weights of the 7B model? #149

BenBill2077 opened this issue Mar 7, 2023 · 33 comments

Comments

@BenBill2077
Copy link

Still waiting for the email.

@Daviljoe193
Copy link

Daviljoe193 commented Mar 7, 2023

Bittorrent (magnet:?xt=urn:btih:b8287ebfa04f879b048d4d4404108cf3e8014352&dn=LLaMA). Some people have allegedly been getting ghosted, and getting ghosted ain't cool, so just do it, the speeds via bittorrent ain't bad once it gets started.

@shadowwalker2718
Copy link

try this hacked llama: https://github.com/juncongmoo/pyllama pretty good

@pauldog
Copy link

pauldog commented Mar 7, 2023

Just search Twitter for torrents.

Just to be clear downloading and using these weights is all totally legal as weights are not copyrightable.

Whether uploading these weights in the first place was legal if the person signed the Meta form, is a grey area.

Well it would be like writing every even letter of a Wikipedia article to a text file and then creating a form which says if I give you this text file you have to promise not to give it to anyone else. Now would that hold up in court? 🤔

I have a feeling Meta doesn't mind the weights being on Torrent sights but doesn't want to "officially" release them to the public so they can deny all responsibility.

Besides which the license only refers to the "software" and not the data. Which means you could just rewrite the inference code to avoid copyright.

@BenBill2077
Copy link
Author

BenBill2077 commented Mar 8, 2023 via email

@glample glample closed this as completed Mar 8, 2023
@zanghu
Copy link

zanghu commented Mar 12, 2023

I would recommend this: https://github.com/howl-anderson/unlocking-the-power-of-llms for anyone live in China.

@swyxio
Copy link

swyxio commented Mar 18, 2023

https://github.com/shawwn/llama-dl

@xyproto
Copy link

xyproto commented Apr 5, 2023

The shawwn/llama-dl README.md file has an archived copy here, if it's helpful: https://archive.is/7t3it

@Immortalise
Copy link

https://archive.is/7t3it
seems not available for now :(

@Daviljoe193
Copy link

https://archive.is/7t3it
seems not available for now :(

Yup... just get the torrent, or the IPFS mirror.

Some have been having trouble with the magnet. For preservation, I've reuploaded the original torrent content to an ipfs node.

http gateways (the links below) will be slow to retrieve until more people have the files. Use a local node like Kubo or Brave Browser if possible - it's faster and helps reseed the content for others temporarily (after downloading), or permanently (if pinned).

Full backup: ipfs://Qmb9y5GCkTG7ZzbBWMu2BXwMkzyCKcUjtEKPpgdZ7GEFKm

7B: ipfs://QmbvdJ7KgvZiyaqHw5QtQxRtUd7pCAdkWWbzuvyKusLGTw 13B: ipfs://QmPCfCEERStStjg4kfj3cmCUu1TP7pVQbxdFMwnhpuJtxk 30B: ipfs://QmSD8cxm4zvvnD35KKFu8D9VjXAavNoGWemPW1pQ3AF9ZZ 65B: ipfs://QmdWH379NQu8XoesA8AFw9nKV2MpGR4KohK7WyugadAKTh

You can download normally, or use these commands from the Kubo CLI:

# Optional: Preload the 7B model. Retrieves the content you don't have yet. Replace with another CID, as needed.
ipfs refs -r QmbvdJ7KgvZiyaqHw5QtQxRtUd7pCAdkWWbzuvyKusLGTw

# Optional: Pin the 7B model. The GC removes old content you don't use, this prevents the model from being GC'd if enabled.
ipfs pin add QmbvdJ7KgvZiyaqHw5QtQxRtUd7pCAdkWWbzuvyKusLGTw

# Download from IPFS and save to disk via CLI:
ipfs get QmbvdJ7KgvZiyaqHw5QtQxRtUd7pCAdkWWbzuvyKusLGTw --output ./7B

Where can I get the original LLaMA model weights?

Easy, just fill out this official form, give them very clear reasoning why you should be granted a temporary (Identifiable) download link, and hope that you don't get ghosted. Or you could just use the torrent, like the rest of us.

Thanks.How can I use the torrent?

While you can use any bittorrent client, just use a client like Aria2c (It's basically just a CLI downloader that just so happens to support bittorrent), which on Ubuntu can be gotten through sudo apt install aria2, and on Windows and Mac OS (Which I'm not very familiar with) can be gotten from this page. With aria2c in your path (On Ubuntu, it just is. For Windows/Mac, in a termal or CMD, just navigate into the path of aria2c), run one of the following...

For the 7B model...

aria2c --select-file 21-23,25,26 'magnet:?xt=urn:btih:b8287ebfa04f879b048d4d4404108cf3e8014352&dn=LLaMA'

For the 13B model...

aria2c --select-file 1-4,25,26 'magnet:?xt=urn:btih:b8287ebfa04f879b048d4d4404108cf3e8014352&dn=LLaMA'

For the 30B model...

aria2c --select-file 5-10,25,26 'magnet:?xt=urn:btih:b8287ebfa04f879b048d4d4404108cf3e8014352&dn=LLaMA'

For the 65B model...

aria2c --select-file 11-20,25,26 'magnet:?xt=urn:btih:b8287ebfa04f879b048d4d4404108cf3e8014352&dn=LLaMA'

And for everything...

aria2c 'magnet:?xt=urn:btih:b8287ebfa04f879b048d4d4404108cf3e8014352&dn=LLaMA'

Once the download status goes to "SEED", you can press CTRL+C to end the process, or alternatively, let it seed to a ratio of 1.0, at which point it'll close on it's own. On Windows/Mac, the usage is nearly identical, just use ./ in front of the executable name (Again, while in the directory of it), and for Windows specifically, call the executable as ./aria2c.exe. The last version for Mac was aria2 1.35.0. Once you have the models, it's up to you how you use them. Also note, aria2c doesn't trim ajacent files from what's selected (Torrents always require things be in chunks, and chunks almost always contain either the middle of a file, or two ends of two files, so this is normal), so if you see model dirs that you didn't want, just remove them once the download is complete. There's also the other magnet link that was specifically a part of this pull request (magnet:?xt=urn:btih:ZXXDAUWYLRUXXBHUYEMS6Q5CE5WA3LVA&dn=LLaMA), but I could not get this one to work for me. Also note, I personally could not get either of these magnet links to work within Colab (Even using reconstructed seed files, made from aria2c --bt-metadata-only=true --bt-save-metadata=true MAGNETURL wouldn't start on there), but I could get the former link working on my local system.

@russeree
Copy link

russeree commented Apr 7, 2023

What does getting 'Ghosted' mean?

@Daviljoe193
Copy link

What does getting 'Ghosted' mean?

ghosty

@russeree
Copy link

russeree commented Apr 7, 2023

Sorry for my ignorance, I thought it had some technical meaning beyond that. Such as those that obtain the weights through non standard channels end up suffering from some sort of negative effect of 'Ghosting'

Thanks!

@iperov
Copy link

iperov commented Apr 30, 2023

Bittorrent (magnet:?xt=urn:btih:b8287ebfa04f879b048d4d4404108cf3e8014352&dn=LLaMA). Some people have allegedly been getting ghosted, and getting ghosted ain't cool, so just do it, the speeds via bittorrent ain't bad once it gets started.

it has no config.json for 13B. Where I can obtain it ?

(solved)

@sr5434
Copy link

sr5434 commented May 7, 2023

How long is the waitlist?

@russeree
Copy link

russeree commented May 9, 2023

You likely will not even get a response from the team at Facebook. 'Ghosted' is a term used commonly around here. None the less it never hurts to try.

@sr5434
Copy link

sr5434 commented May 9, 2023

Ok.

@GameDevKitY
Copy link

How do I use these weights?

@sr5434
Copy link

sr5434 commented May 10, 2023

I think you can use them with hugging face transformers

@nexushamer
Copy link

Bittorrent (magnet:?xt=urn:btih:b8287ebfa04f879b048d4d4404108cf3e8014352&dn=LLaMA). Some people have allegedly been getting ghosted, and getting ghosted ain't cool, so just do it, the speeds via bittorrent ain't bad once it gets started.

it has no config.json for 13B. Where I can obtain it ?

(solved)

I would appreciate it if you could provide information on the location of the config.json file. I am currently encountering an error while attempting to run the command "python -m 'fastchat.model.apply_delta'," and it appears to be related to the config file.

@kod02
Copy link

kod02 commented May 14, 2023 via email

@kod02
Copy link

kod02 commented May 14, 2023

Havehhdjejx Ben

@Vikho
Copy link

Vikho commented Jun 7, 2023

These methods seems very helpful! Thanks all of you!

@kod02
Copy link

kod02 commented Jun 7, 2023

selissarichi.com

@kenhuang1964
Copy link

Hey @Daviljoe193 thank you! I'm wondering is it possible to only download the 7B and 13B weights?

@Cliffia123
Copy link

I find a useful way to download model weights, just use this in terminal

curl -o- https://raw.githubusercontent.com/shawwn/llama-dl/56f50b96072f42fb2520b1ad5a1d6ef30351f23c/llama.sh | $(brew --prefix)/bin/bash

you can copy the script in your computer and choose to download the sepcific weighets (i.e. 7B) in llama.sh

@Cliffia123
Copy link

@kenhuangsy you can try this

curl -o- https://raw.githubusercontent.com/shawwn/llama-dl/56f50b96072f42fb2520b1ad5a1d6ef30351f23c/llama.sh | $(brew --prefix)/bin/bash

It help to me

@kenhuang1964
Copy link

@Cliffia123 thanks!

@dongfeicui
Copy link

I would recommend this: https://github.com/howl-anderson/unlocking-the-power-of-llms for anyone live in China.

The ability to download is no longer available.

image

@dongfeicui
Copy link

@shams2023
Copy link

https://huggingface.co/nyanko7/LLaMA-7B/tree/main

这是完整版的llama-7b权重文件吗?

@lixit
Copy link

lixit commented Mar 23, 2024

https://huggingface.co/nyanko7/LLaMA-7B/tree/main

这是完整版的llama-7b权重文件吗?

这个应该是
https://huggingface.co/huggyllama/llama-7b

@shams2023
Copy link

https://huggingface.co/nyanko7/LLaMA-7B/tree/main

这是完整版的llama-7b权重文件吗?

这个应该是 https://huggingface.co/huggyllama/llama-7b

I saw your answer, thank you very much for answering my question!
Thank you!

@hanxunyu
Copy link

https://huggingface.co/nyanko7/LLaMA-7B/tree/main

这是完整版的llama-7b权重文件吗?

这个应该是 https://huggingface.co/huggyllama/llama-7b
为什么这个里面有两组大文件呀,一组的后缀是.safetensors;另一组的后缀是.bin;并且它们的大小是相同的。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests