Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
vinai
/
PhoGPT-4B-Chat
like
30
Follow
VinAI Research
75
Text Generation
Transformers
PyTorch
Vietnamese
mpt
conversational
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
68cdea0
PhoGPT-4B-Chat
/
fc.py
dqnguyen
Upload code
68cdea0
10 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