Downloads · 30 days
14
19% of all-time downloads
kunhunjon/ChessLM_Qwen3_Trainium_Sharded
ChessLM_Qwen3_Trainium_Sharded is a text generation model from kunhunjon. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This is a sharded version of the Neuron-traced karanps/ChessLMQwen3 optimized for AWS Trainium (trn1) and Inferentia (inf2) instances using vLLM with continuous batching enabled.
Downloads · 30 days
14
19% of all-time downloads
All-time downloads
75
Public
Repo size
17.6 GB
Likes
0
Public
Click a slice to open those files.
.pt17.6 GB · 100%
From the Hugging Face model README
This is a sharded version of the Neuron-traced karanps/ChessLM_Qwen3 optimized for AWS Trainium (trn1) and Inferentia (inf2) instances using vLLM with continuous batching enabled.
The model.pt file (16.4GB) has been split into 9 shards of ~2GB each for easier downloading and storage.
model.shard0000.pt through model.shard0007.pt: 2GB eachmodel.shard0008.pt: 799MB (final shard)model.shards.json: Metadata with SHA256 hashes for verificationreconstruct.py: Script to reconstruct the original model.ptconfig.json: Model configurationneuron_config.json: Neuron compilation settingstokenizer.json, vocab.json, merges.txt, etc.If you need the complete model.pt file:
# Clone the repository
git clone https://huggingface.co/kunhunjon/ChessLM_Qwen3_Trainium_Sharded
cd ChessLM_Qwen3_Trainium_Sharded
# Reconstruct the original model.pt
python3 reconstruct.py
# This will create model.pt (16.4GB) from the shards
The model can be loaded directly without reconstruction:
from optimum.neuron import NeuronModelForCausalLM
from transformers import AutoTokenizer
# Load the model (will handle shards automatically if needed)
model = NeuronModelForCausalLM.from_pretrained("kunhunjon/ChessLM_Qwen3_Trainium_Sharded")
tokenizer = AutoTokenizer.from_pretrained("kunhunjon/ChessLM_Qwen3_Trainium_Sharded")
# Run inference
prompt = "e2e4"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=20)
result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
pip install optimum-neuron[vllm]==0.3.0
pip install neuronx-distributed --extra-index-url=https://pip.repos.neuron.amazonaws.com
The model was sharded using a custom script that:
The model.shards.json file contains SHA256 hashes for each shard. The reconstruction script automatically verifies these hashes when reassembling the model.
This model is compiled with continuous batching enabled, which allows vLLM to:
Note: On-device sampling is disabled due to a known Neuron runtime limitation when using tensor parallelism with 2 cores. Sampling is handled on the host instead.
batch_size=4sequence_length=2048num_cores=2auto_cast_type="bf16"continuous_batching=TrueThis model inherits the license from the base model karanps/ChessLM_Qwen3.
If you use this model, please cite the original ChessLM model and AWS Neuron tools.