llmreference
Baseten API

Using Phi-3 Mini 128K on Baseten API

Implementation guide · Phi-3 · Microsoft Research

ServerlessOpen Source

Quick Start

  1. 1
    Create an account at Baseten API and generate an API key.
  2. 2
    Use the Baseten API SDK or REST API to call phi-3-mini-128k — see the documentation for request format.

Code Examples

See Baseten API documentation for integration details.

About Baseten API

The AI platform offers a comprehensive suite of features designed to streamline the development and deployment of machine learning models. At its core, the platform supports open-source models, allowing developers to leverage existing frameworks and tools for their AI applications. This flexibility is coupled with rapid deployment capabilities, enabling organizations to quickly bring their models into production environments. The platform's architecture is built for scalability, accommodating fluctuating workloads and user demands without compromising performance. A standout feature is its high-speed inference capabilities, crucial for applications that require real-time data processing and decision-making. Cost-effectiveness is a key advantage of the platform, implementing a pay-as-you-go model that minimizes initial investments while optimizing resource utilization. The platform also boasts flexible deployment options, allowing users to deploy models across various environments including cloud, on-premises, or edge devices. This versatility empowers organizations to tailor their deployment strategies to specific needs and existing infrastructure. By combining these features, the platform provides a robust solution that enables businesses to fully harness the potential of AI while maintaining control over costs and deployment logistics.

Baseten is an AI infrastructure platform that provides comprehensive tools for deploying and serving machine learning models efficiently and cost-effectively. The platform offers: 1. Rapid deployment: Users can deploy models in minutes, avoiding complex processes. 2. Support for open-source models: Baseten allows deployment of best-in-class open-source models. 3. Optimized serving: The platform provides optimized serving for custom models. 4. Scalability: Horizontally scalable services enable smooth transition from prototype to production. 5. High-speed inference: Baseten offers fast inference on infrastructure that automatically scales with traffic. 6. Cost-efficiency: The platform includes a scaled-to-zero feature to optimize costs. 7. Flexible deployment options: Models can be run on Baseten's cloud or the user's infrastructure. Baseten aims to simplify the ML deployment process while ensuring performance, scalability, and cost-efficiency for AI builders and developers.

Pricing on Baseten API

Capabilities

No model capability flags are currently sourced.

About Phi-3 Mini 128K

Phi-3 Mini-128K-Instruct, developed by Microsoft, is a 3.8 billion-parameter large language model renowned for its lightweight, open-source architecture. Despite its modest size, it excels in reasoning tasks, particularly in math and logic, and showcases strong code generation capabilities. A standout feature is its remarkable ability to handle up to 128,000 tokens, allowing it to process extensive text documents and codebases efficiently. While it has limitations in factual knowledge and focuses primarily on English, it strikes a balance between performance and efficiency, making it ideal for resource-constrained environments. The model is available on platforms like Azure AI Studio and Hugging Face and benefits from training on high-quality synthetic and publicly available data, with fine-tuning to improve instruction adherence and safety.

Model Specs

Released2024-04-23
Parameters3.8B
Context128K
ArchitectureDecoder Only
Knowledge cutoff2023-10

Provider

Baseten API
Baseten API

Baseten

San Francisco, California, United States