Skip to main content

LLM MCP Server

MCP server for LLM training, fine-tuning, and experimentation. Part of the scicomp-mcp suite.

Features

  • Model Architectures: GPT (Transformer decoder) and Mamba (State Space Model)
  • Tokenizers: tiktoken, BPE, SentencePiece, character-level
  • Training: AdamW, learning rate scheduling, gradient checkpointing, mixed precision
  • Evaluation: Perplexity, loss, text generation

Installation

uv sync --all-extras

Usage

scicomp-llm-mcp

Tools

Model Management

  • create_model - Create GPT or Mamba architecture
  • get_model_config - Get model configuration
  • list_models - List all models

Tokenizers

  • create_tokenizer - Create or load tokenizer
  • tokenize_text - Tokenize text

Datasets

  • load_dataset - Load training dataset
  • prepare_dataset - Prepare for training

Training

  • create_trainer - Configure training
  • train_step - Execute training steps
  • get_training_status - Monitor progress

Evaluation

  • evaluate_model - Evaluate on dataset
  • generate_text - Generate text
  • compute_perplexity - Compute perplexity

Checkpoints

  • save_checkpoint - Save model checkpoint
  • load_checkpoint - Load from checkpoint

Analysis

  • analyze_attention - Analyze attention patterns
  • compute_gradient_norms - Compute gradient norms
  • estimate_memory - Estimate training memory requirements
  • compute_model_flops - Compute model FLOPs
  • analyze_weights - Analyze weight distributions
  • analyze_sparsity - Compute model sparsity
  • analyze_norms - Analyze layer norms
  • compare_models - Compare model architectures

Dataset Ablation

  • analyze_data_influence - Compute sample influence
  • analyze_token_distribution - Analyze token frequencies
  • analyze_sequences - Compute sequence statistics
  • run_data_ablation - Run ablation studies
  • suggest_augmentations - Suggest data augmentation strategies

Attention Visualization

  • visualize_attention - Extract attention summary
  • analyze_attention_patterns - Detect attention patterns
  • compute_head_rankings - Rank heads by importance
  • compare_heads - Compare attention heads

License

MIT

Metadata

Release files for scicomp-llm-mcp 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scicomp-llm-mcp 0.1.6
File Size Uploaded Provenance Actions
scicomp_llm_mcp-0.1.6.tar.gz 33.7 kB With provenance Details for scicomp_llm_mcp-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scicomp-llm-mcp 0.1.6
File Interpreter ABI Platform Actions
scicomp_llm_mcp-0.1.6-py3-none-any.whl Python 3 none any Details for scicomp_llm_mcp-0.1.6-py3-none-any.whl

Total release size: 66.2 kB

Release files / scicomp_llm_mcp-0.1.6.tar.gz

Download URL scicomp_llm_mcp-0.1.6.tar.gz
Size 33.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fe6a7f91227429dfddf9732a4b7930f7fc1b2f816304205cf3887dfaa8d12a2f
BLAKE2b-256 checksum
How to use checksums
8c3fe07508c8ce2c13798ea7ab41cc6758afce4dae8f37139b6e5435cc3d978a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 5, 2026.

Transparency log

Release files / scicomp_llm_mcp-0.1.6-py3-none-any.whl

Download URL scicomp_llm_mcp-0.1.6-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3d7044115157e99721689179a2bc3f3eed9b07a15e22ca9a45104d0f475c93e
BLAKE2b-256 checksum
How to use checksums
39a54f0155aba10fcd09d6ebc9025024cd8c07decc44494be250052deb63a564
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 5, 2026.

Transparency log

Security for scicomp-llm-mcp 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for scicomp_llm_mcp-0.1.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page