项目介绍

ollama-cloud/get-started 是一个托管在 GitHub 上的开源项目,目前获得 181 个 Star、11 次 Fork。

仓库全名
ollama-cloud/get-started
Star 数
181
Fork 数
11

README 摘要

Ollama Cloud Ollama Cloud is a Highly Scalable Cloud-native Stack for Ollama. Help us shine by turning a ★ into a ⭐! This is not a Code repository, please read Components Development usually kicks off on your local machine, comfy and controlled. But moving to production? That’s a huge leap — hello, delay, inconsistency, and dependence. Ollama Cloud steps in with some solid perks: Consistency: If it works locally,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

如何获取 get-started 的源码?

可以直接克隆仓库:git clone https://github.com/ollama-cloud/get-started.git,默认分支为 main;安装与运行步骤见仓库 README。

get-started 最近还在维护吗?

仓库最近一次更新为 2024年3月20日,当前没有未关闭的 Issue;Star 数为 181,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Ollama Cloud is a Highly Scalable Cloud-native Stack for Ollama

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

贡献者

README

Ollama Cloud
Ollama Cloud

Ollama Cloud is a Highly Scalable Cloud-native Stack for Ollama. Help us shine by turning a ★ into a ⭐!


This is not a Code repository, please read Components


Development usually kicks off on your local machine, comfy and controlled.

But moving to production? That’s a huge leap — hello, delay, inconsistency, and dependence.

Ollama Cloud steps in with some solid perks:

  • Consistency: If it works locally, it’ll work at scale with no change to your code.
  • Simplicity: Can be deployed at scale with no DevOps or SRE skills.
  • A Cloud Platform: Empowers developers with self-service capabilities.

What you see locally is what you get in production. Basically, “Local Is Production”. Maybe we should call it LIP 🫦, lol.

Notice the use of host calls over REST APIs, which significantly speeds up communication, enhances reliability, and ensures privacy.

Now you can focus on building amazing AI applications without worrying about the usual steps involved in taking them to production, such as DevOps or service dependencies. You can relax, as now it’s a mere git push away!

Components

Ollama Cloud is based on the following components:

  • tau: The implementation of taubyte, a solution to build autonomous cloud computing platforms.
  • ollama plugin: A plugin that allows calling ollama from WebAssembly.
  • dreamland: A tool that allows running a taubyte based cloud on your computer for local development and E2E automated testing.

Set Up Your Local Environment

First, prepare your local environment with dreamland, tau-cli, docker, and the necessary tools to build the ollama plugin.

Dreamland & Tau-CLI

If you have Node.js, just run:

npm i @taubyte/dream @taubyte/cli

If not, check dreamland and tau-cli for other installation methods.

Docker

To install Docker simply use:

curl -fsSL https://get.docker.com | sh

Build Tools

Building the plugin requires go, but ollama itself needs:

  • cmake version 3.24 or higher
  • go version 1.22 or higher
  • gcc version 11.4.0 or higher

On Ubuntu Linux, install gcc & cmake with:

sudo apt install build-essential

For Go, follow the steps at Go’s official installation guide.

On macOS, you can install these using:

brew install go cmake gcc

Hardware Acceleration

If you’re unsure whether you have the necessary development libraries for your acceleration hardware, please refer to https://github.com/ollama/ollama/blob/main/docs/development.md.

Build the Plugin

To build the plugin, first clone the repository:

git clone https://github.com/samyfodil/ollama.git

Then, compile the C++ backend:

cd ollama
go generate ./...

Finally, build the plugin itself:

cd tau
go build . -o plugin

That’s it! You should now have a plugin executable.

Start a Local Cloud

With the plugin built, it’s time to start a local cloud. Run:

dream new multiverse

Wait until it indicates that the universe is ready.

Attach Plugin

The Cloud you’ve just started lacks LLM capabilities. To add these, load the plugin by running:

dream inject attach-plugin -p /path/to/plugin

If you haven’t changed directories, it should be:

dream inject attach-plugin -p $(pwd)/plugin

Now, you’re all set to kick ass!

What’s next

Acknowledgement

This project stands on the shoulders of the projects mentioned in the introduction, as well as ollama itself. Please show your support by leaving a ⭐ if you find them useful.

评论

暂无评论