Downloads · 30 days
29
3% of all-time downloads
kunhunjon/ChessLM_Qwen3_Trainium_AWS_Format
ChessLM_Qwen3_Trainium_AWS_Format 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 Neuron-traced version of karanps/ChessLMQwen3 optimized for AWS Trainium (trn1) and Inferentia (inf2) instances using vLLM with continuous batching enabled.
Downloads · 30 days
29
3% of all-time downloads
All-time downloads
1K
Public
Repo size
17.7 GB
Likes
0
Public
Click a slice to open those files.
.pt17.6 GB · 100%
From the Hugging Face model README
This is a Neuron-traced version of karanps/ChessLM_Qwen3 optimized for AWS Trainium (trn1) and Inferentia (inf2) instances using vLLM with continuous batching enabled.
This model follows the AWS Neuron repository structure with separate directories for compiled artifacts.
This repository follows the AWS Neuron format with organized directories:
├── context_encoding_model/
│ └── _tp0_bk0/
│ ├── graph.neff
│ ├── model.MODULE_*.neff
│ ├── model.MODULE_*.hlo_module.pb
│ ├── compile_flags.*.json
│ ├── neuron_config.json
│ └── log-neuron-cc.txt
├── token_generation_model/
│ └── _tp0_bk0/
│ ├── graph.neff
│ ├── model.MODULE_*.neff
│ ├── model.MODULE_*.hlo_module.pb
│ ├── wrapped_neff.hlo
│ ├── compile_flags.*.json
│ ├── neuron_config.json
│ └── log-neuron-cc.txt
├── layout_opt/
│ ├── graph.neff
│ ├── log-neuron-cc.txt
│ └── model/
│ └── graph.hlo
├── model.pt (17GB - contains compiled graphs + weights)
├── config.json
├── neuron_config.json
└── tokenizer files
The AWS Neuron reference models (e.g., aws-neuron/Qwen3-1.7B-TP2-BS8-SEQ4096) typically have:
weights/ directory with separate safetensors files (e.g., tp0_sharded_checkpoint.safetensors)This model has:
weights/ directory (preserved for format compatibility)This is because Neuron-compiled models with optimum-neuron[vllm]==0.3.0 bundle weights within the compiled format. The weights are optimized and embedded in the NEFF (Neuron Executable File Format) during compilation. This is a valid alternative implementation that provides the same functionality.
pip install optimum-neuron[vllm]==0.3.0
pip install neuronx-distributed --extra-index-url=https://pip.repos.neuron.amazonaws.com
from optimum.neuron import NeuronModelForCausalLM
from transformers import AutoTokenizer
# Load the model
model = NeuronModelForCausalLM.from_pretrained("kunhunjon/ChessLM_Qwen3_Trainium_AWS_Format")
tokenizer = AutoTokenizer.from_pretrained("kunhunjon/ChessLM_Qwen3_Trainium_AWS_Format")
# 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)
This model was traced with the following parameters:
batch_size=4sequence_length=2048num_cores=2auto_cast_type="bf16"continuous_batching=TrueThe separate directories contain all compilation artifacts:
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.
| File | Purpose |
|---|---|
| model.pt | Main model with embedded weights (17GB) |
| config.json | Base model configuration |
| neuron_config.json | Neuron compilation settings |
| tokenizer* | Tokenizer files for text processing |
| context_encoding_model/ | Compiled graphs for prompt processing |
| token_generation_model/ | Compiled graphs for token generation |
| layout_opt/ | Weight layout optimization artifacts |
This 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.