Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
airesearch
/
WangchanLion7B
like
5
Text Generation
Transformers
PyTorch
11 datasets
Thai
English
mpt
custom_code
text-generation-inference
Inference Endpoints
License:
apache-2.0
Model card
Files
Files and versions
Community
Train
Deploy
Use this model
44a76d2
WangchanLion7B
/
fc.py
Rasu23
Upload MPTForCausalLM
cd7c35a
8 months ago
raw
Copy download link
history
blame
No virus
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