SDK for Baidu's Qianfan LLM platform, enabling AI workflows
Top 77.6% on sourcepulse
The Qianfan SDK provides Python bindings for Baidu's Qianfan MaaS platform, enabling developers to integrate large language model (LLM) inference, training, and management into their AI workflows and applications. It offers a streamlined interface for tasks like chat, text completion, embeddings, and image generation, as well as end-to-end LLM fine-tuning and pre-training.
How It Works
The SDK abstracts the complexities of the Qianfan platform, offering a unified Python API. For inference, it supports various models (ERNIE series, open-source) with options for chat, completion, and embeddings, including asynchronous, streaming, and batch processing. For training, it provides a pipeline-based approach for data preparation (Dataset module), fine-tuning/pre-training (Trainer module), and model management (Model module), allowing customization of LLMs for specific business needs.
Quick Start & Requirements
pip install 'qianfan[dataset_base]'
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
1 month ago
1 day