Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
JumboJam
/
testmodel
like
0
Text Generation
Transformers
PyTorch
mpt
custom_code
text-generation-inference
Inference Endpoints
Model card
Files
Files and versions
Community
Train
Deploy
Use this model
main
testmodel
/
fc.py
JumboJam
Upload 21 files
0ab6724
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