- news
- Introduction
- Quick-Deployment
- Service-Access
- Modules
- Core-Features
- Acknowledgements
- Contributing
- [2024.11.06] EasyDeploy was released, utilizing Docker and Ollama based architecture.
EasyDeploy is engineered to provide users with end-to-end deployment capabilities for large-scale models. By incorporating the deployment and inference logic of large models within Docker, EasyDeploy streamlines the overall deployment process and significantly enhances the user experience. Currently, EasyDeploy supports multiple engines, including Ollama, and plans to extend support to additional engines such as vLLM in the future. Through EasyDeploy, users are empowered to rapidly deploy and initiate large-scale models between cloud environments and local devices, effectively eliminating technical barriers and enabling a focus on the application and optimization of the models themselves. Whether operating within local environments or cloud platforms, EasyDeploy provides efficient and reliable solutions, thereby facilitating the swift advancement and practical implementation of artificial intelligence.
- Python version: 3.10
- Package Installation
pip install -r requirements.txt
Download Docker Image
Download link:上传后更新
docker run -p 8000:8000 easydeploy_llama3.2_3b
The service provides both streaming and blocking access functionalities through RESTful APIs. An example request is presented below:
Request Method:
# -*- coding: utf-8 -*-
import json
import requests
url = 'http://127.0.0.1:8000/chat/completions'
prompt = '你好'
model = 'lamma3.2'
messages = [{"role": "user", "content": prompt}]
data = {'model': model, 'messages': messages}
headers = {"Content-Type": "application/json"}
response = requests.post(url, headers=headers, data=json.dumps(data))
if response.status_code == 200:
ans_dict = json.loads(response.text)
print('data: {}'.format(ans_dict))
Return Format:
{
"id": "ollama-123",
"object": "chat.completion",
"created": 1731847899,
"model": "lamma3.2",
"system_fingerprint": "",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "hi! How can I assist you today?"
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
}
}
Request Method:
# -*- coding: utf-8 -*-
import json
import requests
url = 'http://127.0.0.1:8000/chat/completions'
prompt = 'hello'
model = 'lamma3.2'
messages = [{"role": "user", "content": prompt}]
data = {'model': model, 'messages': messages, 'stream': True}
headers = {"Content-Type": "application/json"}
response = requests.post(url, headers=headers, data=json.dumps(data))
Return Format:
{
"id": "ollama-123",
"object": "chat.completion.chunk",
"created": 1731848401,
"model": "lamma3.2",
"system_fingerprint": "",
"choices": [
{
"index": 0,
"delta": {
"role": "assistant",
"content": "hi"
},
"logprobs": null,
"finish_reason": null
}
]
}
Category | Function | Status | Description |
---|---|---|---|
API Service | OpenAI Standard API | ✅ | The service interface complies with OpenAI standards, minimizing integration costs through standardized APIs. It enables users to seamlessly integrate and maintain the system, swiftly respond to business requirements, and concentrate on core development. |
Blocking access capabilities | ✅ | Suitable for tasks requiring integrity and coherence or for overall verification and processing of results, this approach obtains complete output in a single iteration. Throughout the process, the user must wait until all output content has been fully generated. | |
Streaming access capabilities | ✅ | Suitable for real-time applications with stringent response time requirements, such as code completion, real-time translation, or websites with dynamic content loading. The model transmits content incrementally during generation, enabling users to receive and process partial outputs immediately without waiting for full completion, thereby enhancing interactivity. | |
High-performance gateway | ⬜ | High-performance gateways effectively manage high-concurrency requests, reduce latency, and enhance response times by optimizing data transmission, employing advanced load balancing algorithms, and implementing efficient resource management. | |
Multi-engine Support | Ollama | ✅ | High-performance gateways effectively manage high-concurrency requests, reduce latency, and enhance response times by optimizing data transmission, employing advanced load balancing algorithms, and implementing efficient resource management. |
vLLM | ✅ | vLLM exhibits significant advantages in memory management and throughput. By optimizing memory usage and parallel computation, it substantially enhances inference speed and resource efficiency, while maintaining compatibility with various hardware environments. vLLM offers a wide range of configuration options, allowing users to adjust inference strategies based on their needs. Its scalable architecture makes it suitable for both research and enterprise-level applications. | |
Tensorrt–LLM | ⬜ | TensorRT-LLM (TensorRT for Large Language Models) is a high-performance, scalable deep learning inference optimization library developed by NVIDIA, specifically designed for large language models (LLMs). | |
Docker Deployment Capability | Docker images built with Python 3.10 | ✅ | TensorRT-LLM is a high-performance, scalable deep learning inference optimization library developed by NVIDIA, specifically designed for large language models (LLMs). |
Web UI Integration | OpenUI protocol | ⬜ | The comprehensive UI open-source protocol facilitates users in integrating diverse components, enhancing product customizability and extensibility. |
More Core Features | ModelCache semantic caching | ⬜ | By caching generated QA pairs, similar requests can achieve millisecond-level responses, enhancing the performance and efficiency of model inference. |
This project draws on the following open-source projects, and we express our gratitude to the relevant projects and researchers for their contributions.
Ollama、vLLM
EasyDeploy is an intriguing and valuable project, which we believe holds significant potential. We welcome contributions from both seasoned developers and novices alike. Contributions may include, but are not limited to, submitting issues and suggestions, participating in code development, and enhancing documentation and examples.