Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
happybiz
/
mpt-test
like
0
Text Generation
Transformers
PyTorch
Safetensors
mpt
custom_code
text-generation-inference
Model card
Files
Files and versions
Community
Train
Deploy
Use this model
main
mpt-test
/
fc.py
happybiz
Upload folder using huggingface_hub
0fb790c
verified
about 1 year ago
raw
Copy download link
history
blame
contribute
delete
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