Skip to content

Example and support code for interating with Mammoth

License

modularml/mammoth-contrib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mammoth-contrib

Example and support code for interacting with Mammoth

Projects

A lightweight web interface for managing Mammoth Batch API jobs with integrated S3 presigned URL generation.

Features:

  • Web UI for creating, viewing, retrying, and canceling batch jobs
  • Built-in S3 presigned URL generation
  • AWS credentials management
  • Configuration presets with import/export
  • Real-time batch status monitoring
  • Curl command generation for all operations

Quick Start:

cd batch-manager
./start.sh

Then open http://localhost:8080

Python scripts for batch job management via command line.

Scripts:

  • generate_s3_presigned.py: Generate S3 presigned URLs for batch I/O
  • submit-job.py: Submit batch jobs via CLI
  • make-batch.py: Create batch files and configurations

Example API Usage

curl -X POST http://localhost:8000/v1/batches \
    -H "Content-Type: application/json" \
    -d '{
    "batch_id": "batch-example-001",
    "input_file_id": "https://your-bucket.s3.amazonaws.com/inputs/batch.tar.gz?...",
    "output_file_id": "https://your-bucket.s3.amazonaws.com/outputs/batch-output.tar.gz?...",
    "endpoint": "/v1/chat/completions",
    "completion_window": "24h",
    "metadata": {
        "model": "OpenGVLab/InternVL3-38B-Instruct",
        "output_file_id": ""
    }
}'

About

Example and support code for interating with Mammoth

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5