MCPcopy Index your code
hub / github.com/devvrit/matformer

github.com/devvrit/matformer @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
10 symbols 32 edges 2 files 3 documented · 30%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

MatFormer: Nested Transformer for Elastic Inference

This repository provides a public reproduction and open-source implementation of the MatFormer's language modeling experiments (MatLM). It includes the essential building blocks and code required to reproduce the results presented in the paper.

Features

  • Simplified implementation of MatFormer for language modeling tasks.
  • Open-source release for community use and further research.
  • Reproducibility: Includes key components to replicate the experiments.

Running LM Pre-training Jobs

To run the training script, execute:

python3 train.py

Core symbols most depended-on inside this repo

configure_subnetwork
called by 3
modified_llama.py
evaluate_model
called by 1
train.py
preprocess_data
called by 0
train.py
collate_fn
called by 0
train.py
forward
called by 0
modified_llama.py
configure_subnetwork
called by 0
modified_llama.py

Shape

Method 5
Function 3
Class 2

Languages

Python100%

Modules by API surface

modified_llama.py7 symbols
train.py3 symbols

For agents

$ claude mcp add matformer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact