Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
vinai
/
PhoGPT-4B-Chat
like
27
Follow
VinAI Research
62
Text Generation
Transformers
PyTorch
Vietnamese
mpt
conversational
custom_code
text-generation-inference
Inference Endpoints
arxiv:
2311.02945
License:
apache-2.0
Model card
Files
Files and versions
Train
Deploy
Use this model
5b1d456
PhoGPT-4B-Chat
/
fc.py
dqnguyen
Upload code
68cdea0
9 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