harmony_timeflow 是 OpenHarmony 生态中为边缘智能打造的轻量级 AI 推理子系统,具备跨平台一致性、多后端融合、端云协同安全三大领先能力,全面支持资源受限的 LiteOS-M 轻量设备与功能完整的 Linux 系统。
| Files | Last commit | Last update |
|---|---|---|
| 1 year ago | ||
| 10 months ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 10 months ago | ||
| 1 year ago | ||
| 10 months ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago | ||
| 1 year ago |
harmony_timeflow
harmony_timeflow is a lightweight AI inference subsystem within the OpenHarmony ecosystem, specifically designed for edge intelligence. It features three leading capabilities: cross-platform consistency, multi-backend fusion, and secure edge-cloud collaboration, offering comprehensive support for both resource-constrained LiteOS-M lightweight devices and fully featured Linux systems.
🌐 Unified architecture across dual platforms, enabling "develop once, deploy everywhere."
harmony_timeflow employs a pure C API design that abstracts away underlying operating system differences, enabling the same AI application code to run seamlessly on both LiteOS-M and Linux. On Linux platforms, it provides a complete toolchain and high-performance inference capabilities; on LiteOS-M platforms, it is highly optimized for minimal memory usage and fast startup—achieving peak memory consumption under 128KB and millisecond-level startup latency, truly realizing "intelligence everywhere."
🧠 Native support for MindSpore Lite on both platforms, bringing industrial-grade inference capabilities to the edge.
The subsystem deeply integrates MindSpore Lite on both platforms, supporting not only efficient inference of INT8 quantized models but also advanced features such as graph optimization and operator fusion. On the Linux platform, it already leverages the high-performance inference engine to deliver low-latency, high-throughput AI services. On the LiteOS-M platform, it extends industrial-grade AI capabilities to microcontroller-class devices through a trimmed-down runtime, breaking the traditional limitation that “lightweight devices cannot run modern AI models.”
⚙️ Intelligent multi-backend scheduling, dynamically selecting the optimal execution path based on demand.
The system includes a flexible built-in backend abstraction layer that dynamically selects the inference engine based on the device's compute capacity, memory, and power consumption.:
-
MindSpore Lite backend:Suitable for scenarios requiring high performance and high accuracy;
-
Pure C native inference engine:Zero-dependency and ultra-lightweight, suitable for bare-metal environments without neural network library support.
This "on-demand switching with seamless integration" design significantly enhances system adaptability and deployment flexibility.
🔒 End-to-end security and trustworthiness, safeguarding model and data privacy.
harmony_timeflow establishes an end-to-end security framework spanning from model loading to result output:
- Supports digital signature verification for models to prevent execution of unauthorized or tampered models;
- Sensitive data is encrypted in memory to prevent side-channel leakage;
- Integrates TLS secure communication to ensure the security of model updates and inference result transmission;
- Employs a secure C library to harden low-level memory operations, defending against common attacks such as buffer overflows.
📦 Lightweight yet fully-featured—a robust foundation for on-device intelligence.
Despite targeting lightweight devices, the system integrates practical components such as image decoding, data compression, automatic format detection, and URL parsing, enabling direct model and input data loading from either network or local storage to deliver an end-to-end “input-to-inference” experience. Additionally, through resource pooling and context management mechanisms, it efficiently supports concurrent execution and hot-swapping of multiple models.
🌱 harmony_timeflow is growing
🧠 Focusing on the implementation and application of AI in embedded devices
🧩 Deeply integrated into the system architecture
🔓 The framework is streamlined, leaving ample room for future evolution
🤝 We invite you to join us in defining the future of lightweight intelligence
Whether you are :
| 💻 developer | 🔬 AI researcher | 🏫 educator | 🌐 open-source enthusiast |
|---|
Your participation is a crucial step in harmony_timeflow's growth.
✨ Follow it, discuss it, improve it——the future of intelligence is ours to define together.
🌍 Join the collaborative journey of harmony_timeflow , and let every line of code contribute to the intelligence of embedded devices.
Introduction:
YuanRui :Open-source Project President and Mentor for the harmony_timeflow project , Former intern at the Institute of Software, Chinese Academy of Sciences, active lecturer in the 2022 OpenHarmony community, 2023 OpenHarmony MVP .
ZhuJianDong : Advisor for the harmony_timeflow project . Title: Professor. Graduated from East China Normal University with a Master's degree.Primarily engaged in teaching and research, with main research interests in artificial intelligence and cloud computing. Has led or participated in 14 research projects, including: National Social Science Fund Project Ministry of Education Humanities and Social Sciences Research Fund Project , China Vocational Education Society’s Research Project on Teaching Reform and Textbook Development,Jiangsu Provincial Education Science Planning Project , Jiangsu Provincial Research Project on Agricultural Vocational Education Reform,Jiangsu Provincial Research Project on Vocational Education Teaching Reform , Holds 2 utility model patents and 2 software copyrights, has published 2 academic monographs, and served as chief editor for 5 textbooks. Published 26 papers in Chinese core journals. Awarded 13 honors, including : Second Prize of Jiangsu Provincial Educational Scientific Research Achievements , First Prize of Teaching Reform Research Achievements from the China Vocational Education Society , Second Prize of National Higher Education Student Affairs Research Achievements .
Introduction
harmony_timeflow 是 OpenHarmony 生态中为边缘智能打造的轻量级 AI 推理子系统,具备跨平台一致性、多后端融合、端云协同安全三大领先能力,全面支持资源受限的 LiteOS-M 轻量设备与功能完整的 Linux 系统。
Customize your domain