Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
LilPhat23
/
PhoGPT
like
0
Text Generation
PEFT
PyTorch
Safetensors
Transformers
phogpt
lora
conversational
arxiv:
1910.09700
Model card
Files
Files and versions
xet
Community
Use this model
main
PhoGPT
/
fc.py
LilPhat23
Upload fc.py
3226c6d
verified
2 months 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