This repository contains examples of common deep learning models that can be trained on Cerebras hardware. These models demonstrate the best practices for coding a model targeted at the Cerebras hardware so that you can take full advantage of this new powerful compute engine.
In order to get started with running your models on a Cerebras system, please refer to the Developer Documentation along with this readme.
NOTE: If you are interested in trying out Cerebras Model Zoo on Cerebras Hardware (CS-2 Systems), we offer the following options:
For a list of all supported models, please check models in this repository.
To install the Cerebras Model Zoo on the CSX system, please follow the instructions in PYTHON-SETUP.md.
We support the models developed in PyTorch.
When you are targeting the Cerebras Wafer-Scale Cluster for your neural network jobs, please follow the quick start guide from the developer docs to compile, validate and train the models in this Model Zoo for the framework of your choice.
For advanced use cases and porting your existing code please refer to the developer docs.
Model | Code pointer |
---|---|
BERT | Code |
BERT (fine-tuning) Classifier | Code |
BERT (fine-tuning) Named Entity Recognition | Code |
BERT (fine-tuning) Summarization | Code |
BLOOM | Code |
BTLM | Code |
DiT | Code |
DPO | Code |
DPR | Code |
ESM-2 | Code |
Falcon | Code |
GPT-2 | Code |
GPT-3 | Code |
GPT-J | Code |
GPT-NeoX | Code |
GPT-J (fine-tuning) Summarization | Code |
JAIS | Code |
LLaMA, LLaMA-2 and LLaMA-3 | Code |
LLaVA | Code |
Mistral | Code |
Mixtral of Experts | Code |
MNIST (fully connected) | Code |
Multimodal Simple | Code |
MPT | Code |
RoBERTa | Code |
SantaCoder | Code |
StarCoder | Code |
Transformer | Code |
T5 | Code |