manifest  by HazyResearch

SDK for prompt programming with foundation models

created 3 years ago
444 stars

Top 68.7% on sourcepulse

GitHubView on GitHub
Project Summary

Manifest is a Python library designed to simplify prompt programming with foundation models, targeting researchers and developers working with large language models. It provides a unified API for interacting with various models, supports caching for reproducibility and cost savings, and facilitates prompt iteration and experimentation.

How It Works

Manifest abstracts away the complexities of different model APIs by offering a consistent interface for generation, scoring, and embedding tasks. It supports multiple model providers (OpenAI, AI21, Cohere, Together, HuggingFace) and allows seamless switching between them. A key feature is its global caching mechanism, which stores model inputs and outputs using SQLite or Redis, enabling faster iteration, reproducible results, and reduced API costs.

Quick Start & Requirements

  • Install: pip install manifest-ml
  • Install with diffusion support: pip install manifest-ml[diffusers]
  • Install with HuggingFace local model support: pip install manifest-ml[api]
  • Requires API keys for cloud providers. Local HuggingFace models require a separate Flask server setup.
  • See examples: examples

Highlighted Details

  • Unified API for generate, score, and embed tasks.
  • Supports caching with SQLite or Redis backends.
  • Enables model pooling for parallel and distributed inference.
  • Facilitates local inference of HuggingFace models via a Flask API.
  • Supports streaming responses and asynchronous batch queries.

Maintenance & Community

  • Developed by HazyResearch.
  • Roadmap includes clients for HuggingFace Hub, Anthropic, and streaming support for chat models.
  • Citation provided for academic use.

Licensing & Compatibility

  • License: MIT.
  • Compatible with commercial and closed-source applications.

Limitations & Caveats

The model pooling feature is noted as "very much a work in progress." Support for diffusion models is planned but not yet implemented.

Health Check
Last commit

1 year ago

Responsiveness

1+ week

Pull Requests (30d)
0
Issues (30d)
0
Star History
2 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Tim J. Baek Tim J. Baek(Founder of Open WebUI), and
2 more.

llmware by llmware-ai

0.2%
14k
Framework for enterprise RAG pipelines using small, specialized models
created 1 year ago
updated 1 week ago
Starred by Lilian Weng Lilian Weng(Cofounder of Thinking Machines Lab), Andrej Karpathy Andrej Karpathy(Founder of Eureka Labs; Formerly at Tesla, OpenAI; Author of CS 231n), and
42 more.

transformers by huggingface

0.2%
148k
ML library for pretrained model inference and training
created 6 years ago
updated 15 hours ago
Feedback? Help us improve.