Run this model with HF Jobs

Run trl-internal-testing/tiny-GraniteMoeForCausalLM on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/trl-internal-testing/tiny-GraniteMoeForCausalLM. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/trl-internal-testing/tiny-GraniteMoeForCausalLM on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/trl-internal-testing/tiny-GraniteMoeForCausalLM. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/trl-internal-testing/tiny-GraniteMoeForCausalLM. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
qgallouedec's picture
qgallouedec HF Staff
Use 8-wide attention heads, as Flash Attention requires (#1)
76b45c5
Raw History Blame Contribute Delete
914 Bytes
{
"architectures": [
"GraniteMoeForCausalLM"
],
"attention_bias": false,
"attention_dropout": 0.0,
"attention_multiplier": 0.015625,
"bos_token_id": 0,
"dtype": "bfloat16",
"embedding_multiplier": 12.0,
"eos_token_id": 0,
"hidden_act": "silu",
"hidden_size": 32,
"initializer_range": 0.02,
"intermediate_size": 32,
"logits_scaling": 6.0,
"max_position_embeddings": 131072,
"model_type": "granitemoe",
"num_attention_heads": 4,
"num_experts_per_tok": 2,
"num_hidden_layers": 2,
"num_key_value_heads": 2,
"num_local_experts": 4,
"output_router_logits": false,
"pad_token_id": 0,
"position_embedding_type": "rope",
"residual_multiplier": 0.22,
"rms_norm_eps": 1e-06,
"rope_scaling": null,
"rope_theta": 1500000.0,
"router_aux_loss_coef": 0.0,
"tie_word_embeddings": true,
"transformers_version": "4.56.2",
"use_cache": true,
"vocab_size": 49155
}