Skip to content

Commit

Permalink
fix bug and improve script
Browse files Browse the repository at this point in the history
  • Loading branch information
waterflier committed Sep 29, 2023
1 parent f332639 commit 1cef532
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions build_all_in_one.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/bash
# Build the docker image
docker build -t aios .
docker tag aios:latest paios/aios:latest
docker push paios/aios:latest
9 changes: 6 additions & 3 deletions doc/QuickStart zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ OpenDAN (Open and Do Anything Now with AI) is revolutionizing the AI landscape w
With OpenDAN, we're putting AI in your hands, making life simpler and smarter.

This project is still in its very early stages, and there may be significant changes in the future.

## Installation

OpenDAN的internal test版本有两种安装方式:
Expand All @@ -12,7 +13,7 @@ OpenDAN的internal test版本有两种安装方式:

### 安装前准备工作
1. Docker环境
本文不介绍怎么安装Docker,在你的控制台下执行
OpenDAN通过适配Docker实现了对多平台的适配。本文不介绍怎么安装Docker,在你的控制台下执行
```
docker --version
```
Expand Down Expand Up @@ -74,7 +75,8 @@ P.S:
首次快速体验OpenDAN,我们强烈的推荐你使用GPT4,虽然它很慢,也很贵,但它也是目前最强大和稳定的LLM内核。OpenDAN在架构设计上,允许不同的Agent选择不同的LLM内核(但系统里至少要有一个可用的LLM内核),如果你因为各种原因无法使用GPT4,可以是用下面方法安装Local LLM.
目前我们只适配了基于Llama.cpp的Local LLM,用下面方法安装

(Coming Soon)
### 安装LLaMa ComputeNode
OpenDAN支持分布式计算资源调度,因此你可以把LLaMa的计算节点安装在不同的机器上。在本地运行LLaMa根据模型的大小需要相当的算力支持,请根据自己的机器配置量力而行。我们使用llama.cpp构建LLaMa LLM ComputeNode,llama.cpp也是一个正在高速演化的项目,请阅读llamap.cpp的项目

## Hello, Jarvis!
配置完成后,你会进入一个AIOS Shell,这和linux bash 和相似,这个界面的含义是:
Expand Down Expand Up @@ -117,7 +119,8 @@ Jarvis是运行在OpenDAN上的Agent,当OpenDAN退出后,其活动也会被终

我们正在进行的很多研发工作,其中有很大一部分的目标,就是能让你轻松的拥有一个搭载AIOS的Personal Server.相对PC,我们将把这个新设备叫PI(Personal Intelligence),OpenDAN是面向PI的首个OS。

## 更新
## 更新OpenDAN的镜像
现在OpenDAN还处在早期阶段,因此我们会定期更新OpenDAN的镜像,因此你可能需要定期更新你的OpenDAN镜像。更新OpenDAN的镜像非常简单,只需要执行下面的命令就可以了
```
docker stop aios
docker rm aios
Expand Down
4 changes: 2 additions & 2 deletions src/service/aios_shell/aios_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ async def call_func(self,func_name, args):
show_text = FormattedText([("class:title", f"Feature {feature} already enabled!")])
return show_text

AIStorage.get_instance().enable_feature(feature)
await AIStorage.get_instance().enable_feature(feature)
show_text = FormattedText([("class:title", f"Feature {feature} enabled!")])
return show_text
case 'disable':
Expand All @@ -472,7 +472,7 @@ async def call_func(self,func_name, args):
show_text = FormattedText([("class:title", f"Feature {feature} already disabled!")])
return show_text

AIStorage.get_instance().disable_feature(feature)
await AIStorage.get_instance().disable_feature(feature)
show_text = FormattedText([("class:title", f"Feature {feature} disabled!")])
return show_text
#case 'login':
Expand Down

0 comments on commit 1cef532

Please sign in to comment.