Run this model with HF Jobs

Run zgcagi/ZGCM-1-7B-Midtrain-Staged-64K 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/zgcagi/ZGCM-1-7B-Midtrain-Staged-64K. 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/zgcagi/ZGCM-1-7B-Midtrain-Staged-64K 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/zgcagi/ZGCM-1-7B-Midtrain-Staged-64K. 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/zgcagi/ZGCM-1-7B-Midtrain-Staged-64K. 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.

ZGCM-1-7B-Midtrain-Staged-64K

Completed 64K stage of the staged mid-training route, following the 32K stage.

Property Value
Checkpoint step within its run 19206
Training context 65,536 tokens
Training tokens (mid-training cumulative, excluding pretraining) approximately 422.16B
Precision BF16
RoPE base 5,000,000
Stage completed Yes

This is a base language-model checkpoint. It has not undergone instruction tuning. Use plain text inputs; the included tokenizer assets retain the original token IDs.

Loading

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "zgcagi/ZGCM-1-7B-Midtrain-Staged-64K"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id, trust_remote_code=True, torch_dtype=torch.bfloat16,
    device_map="auto", attn_implementation="eager",
)
inputs = tokenizer("The purpose of scientific research is", return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=32, do_sample=False, use_cache=False)
print(tokenizer.decode(output[0], skip_special_tokens=True))

The repository includes the custom ZGCM Transformers implementation. The loading example uses its uncached reference generation path. Conversion and short forward/ generation checks used PyTorch 2.7 and Transformers 4.57.0.

Conversion validation

Exported with export_megatron_zgcm_to_hf.py. All 259 source model tensors round-trip exactly through the 382 exported tensors, preserving BF16 values, grouped Q/G/K/V layout, SwiGLU weights, and normalization parameters. Every exported shard is listed in model.safetensors.index.json and SHA256SUMS.

Local HF loading had no missing or unexpected tensors. A 160-token forward pass and short greedy generation passed. These checks do not constitute a native Megatron-versus-HF logits comparison or long-context benchmark validation.

See checkpoint_info.json for the precise checkpoint identity and validation scope.

Downloads last month
25
Safetensors
Model size
7B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Collection including zgcagi/ZGCM-1-7B-Midtrain-Staged-64K