Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
mosaicml
/
mpt-7b-storywriter
like
822
Follow
Mosaic ML, Inc.
352
Text Generation
Transformers
PyTorch
the_pile_books3
mpt
Composer
MosaicML
llm-foundry
custom_code
text-generation-inference
arxiv:
2108.12409
arxiv:
2205.14135
arxiv:
2302.06675
License:
apache-2.0
Model card
Files
Files and versions
Community
62
Train
Deploy
Use this model
50d3fee
mpt-7b-storywriter
/
fc.py
daking
LLM-foundry update October 17, 2023 21:18:11 (
#51
)
14870ca
about 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