Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
debisoft
/
mpt-7b-8k-instruct-peft-compatible
like
0
Text Generation
Transformers
PyTorch
7 datasets
mpt
Composer
MosaicML
llm-foundry
custom_code
text-generation-inference
arxiv:
2205.14135
arxiv:
2108.12409
arxiv:
2010.04245
License:
cc-by-sa-3.0
Model card
Files
Files and versions
Community
1
Train
Deploy
Use this model
4c0032f
mpt-7b-8k-instruct-peft-compatible
/
fc.py
debisoft
Initial Upload
5b303ca
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