Skip to main content

MCP server for LLM training, fine-tuning, and experimentation

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scicomp_llm_mcp-0.1.6.tar.gz (33.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scicomp_llm_mcp-0.1.6-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

File details

Details for the file scicomp_llm_mcp-0.1.6.tar.gz.

File metadata

  • Download URL: scicomp_llm_mcp-0.1.6.tar.gz
  • Upload date:
  • Size: 33.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scicomp_llm_mcp-0.1.6.tar.gz
Algorithm Hash digest
SHA256 fe6a7f91227429dfddf9732a4b7930f7fc1b2f816304205cf3887dfaa8d12a2f
MD5 bab1f7c2df671ddc095fa55f686677b8
BLAKE2b-256 8c3fe07508c8ce2c13798ea7ab41cc6758afce4dae8f37139b6e5435cc3d978a

See more details on using hashes here.

Provenance

The following attestation bundles were made for scicomp_llm_mcp-0.1.6.tar.gz:

Publisher: publish.yml on andylbrummer/math-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scicomp_llm_mcp-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for scicomp_llm_mcp-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c3d7044115157e99721689179a2bc3f3eed9b07a15e22ca9a45104d0f475c93e
MD5 f81dcab08405344f2972e779c1125972
BLAKE2b-256 39a54f0155aba10fcd09d6ebc9025024cd8c07decc44494be250052deb63a564

See more details on using hashes here.

Provenance

The following attestation bundles were made for scicomp_llm_mcp-0.1.6-py3-none-any.whl:

Publisher: publish.yml on andylbrummer/math-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page