Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
ibm-research
/
mpt-7b-instruct2
like
9
Follow
IBM Research
95
Text Generation
Transformers
PyTorch
mosaicml/dolly_hhrlhf
English
mpt
custom_code
text-generation-inference
Inference Endpoints
License:
apache-2.0
Model card
Files
Files and versions
Community
1
Train
Deploy
Use this model
refs/pr/1
mpt-7b-instruct2
/
fc.py
stallone
Merged mosaicml/mpt-7b@1ec8e55 into main
93ead12
over 1 year ago
raw
Copy download link
history
blame
Safe
167 Bytes
from
torch
import
nn
FC_CLASS_REGISTRY = {
'torch'
: nn.Linear}
try
:
import
transformer_engine.pytorch
as
te
FC_CLASS_REGISTRY[
'te'
] = te.Linear
except
:
pass