Downloads · 30 days
9
18% of all-time downloads
erfanzar/Xerxes2-3B
Xerxes2-3B is a machine learning model from erfanzar. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
[](https://github.com/erfanzar/EasyDeL) [](https://github.com/erfanzar/EasyDeL)
Downloads · 30 days
9
18% of all-time downloads
All-time downloads
49
Public
Repo size
5.8 GB
Likes
1
Public
Click a slice to open those files.
.parameters5.8 GB · 100%
From the Hugging Face model README
A model implemented using the EasyDeL framework, designed to deliver optimal performance for large-scale natural language processing tasks.
EasyDeL provides an efficient, highly-optimized, and customizable machine learning model compatible with both GPU and TPU environments. Built with JAX, this model supports advanced features such as sharded model parallelism, making it suitable for distributed training and inference and customized kernels.
To install EasyDeL, simply run:
pip install easydel
To load a pre-trained version of the model with EasyDeL:
from easydel import AutoEasyDeLModelForCausalLM
from jax import numpy as jnp, lax
max_length = None # can be set to use lower memory for caching
# Load model and parameters
model = AutoEasyDeLModelForCausalLM.from_pretrained(
"erfanzar/Xerxes2-3B",
config_kwargs=ed.EasyDeLBaseConfigDict(
use_scan_mlp=False,
attn_dtype=jnp.float16,
freq_max_position_embeddings=max_length,
mask_max_position_embeddings=max_length,
attn_mechanism=ed.AttentionMechanisms.FLASH_ATTN2
),
dtype=jnp.float16,
param_dtype=jnp.float16,
precision=lax.Precision("fastest"),
auto_shard_model=True,
)
[Need more information]