Downloads · 30 days
233
7% of all-time downloads
rustformers/mpt-7b-ggml
mpt-7b-ggml is a text generation model from rustformers. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
MPT-7B is a decoder-style transformer pretrained from scratch on 1T tokens of English text and code. This model was trained by MosaicML.
Downloads · 30 days
233
7% of all-time downloads
All-time downloads
3.2K
Public
Repo size
344 GB
Likes
46
Public
Click a slice to open those files.
.bin123 GB · 100%
From the Hugging Face model README
MPT-7B is a decoder-style transformer pretrained from scratch on 1T tokens of English text and code. This model was trained by MosaicML.
MPT-7B is part of the family of MosaicPretrainedTransformer (MPT) models, which use a modified transformer architecture optimized for efficient training and inference.
⚠️Caution⚠️: mpt-7b-storywriter is still under development!
Via pip: pip install llm-rs
from llm_rs import AutoModel
#Load the model, define any model you like from the list above as the `model_file`
model = AutoModel.from_pretrained("rustformers/mpt-7b-ggml",model_file="mpt-7b-q4_0-ggjt.bin")
#Generate
print(model.generate("The meaning of life is"))
git clone --recurse-submodules https://github.com/rustformers/llm.git
cd llm
cargo build --release
cargo run --release -- mpt infer -m path/to/model.bin -p "Tell me how cool the Rust programming language is:"
The GGML example only supports the ggml container type!
git clone https://github.com/ggerganov/ggml
cd ggml
mkdir build && cd build
cmake ..
make -j4 mpt
./bin/mpt -m path/to/model.bin -p "The meaning of life is"