Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
vinai
/
PhoGPT-4B
like
11
Follow
VinAI Research
95
Text Generation
Transformers
PyTorch
Vietnamese
mpt
custom_code
text-generation-inference
Inference Endpoints
arxiv:
2311.02945
License:
bsd-3-clause
Model card
Files
Files and versions
Train
Deploy
Use this model
main
PhoGPT-4B
/
fc.py
dqnguyen
Upload code
5f4117f
11 months 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