Downloads · 30 days
2
29% of all-time downloads
Jinawei/llama-v2-70b-chat-4-shards
llama-v2-70b-chat-4-shards is a machine learning model from Jinawei. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Github Link: https://github.com/mexiQQ/llama-70b-chat-4-shards
Downloads · 30 days
2
29% of all-time downloads
All-time downloads
7
Public
Repo size
138 GB
Likes
0
Public
Click a slice to open those files.
.pth138 GB · 100%
From the Hugging Face model README
Github Link: https://github.com/mexiQQ/llama-70b-chat-4-shards
This repository contains a script to transform the weights of Llama v2 70B (chat) from an 8-shard configuration to a 4-shard configuration, making it more accessible for users with machines that have only 4 GPUs.
For convenience, you can directly download weights from https://huggingface.co/Jinawei/llama-v2-70b-chat-4-shards
Meta recently released the weights for Llama v2 70B, distributed across 8 shards. However, some users may have hardware constraints, such as having only 4 GPUs on their machine, making it difficult to load and utilize the model directly. This repository provides a solution to this problem by offering a script that can transform the 8-shard weight distribution of LLAMA v2 70B into a 4-shard configuration, facilitating easier usage on machines with fewer GPUs.
python convert.py \
--input_llama_path ~/llama-2-70b-chat \
--input_shards 8 \
--output_llama_path ~/llama-2-70b-chat-4-shards \
--output_shards 4
If this script proves useful in your work or projects, please consider giving it a star on GitHub. Your support helps to make the project more visible, encourages future development, and is greatly appreciated
For any inquiries or to report issues, please open an issue on this repository.