项目介绍

BlackTechX011/Ollama-in-GitHub-Codespaces 是一个托管在 GitHub 上的开源项目,主要使用 Jupyter Notebook 编写,目前获得 51 个 Star、22 次 Fork。

仓库全名
BlackTechX011/Ollama-in-GitHub-Codespaces
Star 数
51
Fork 数
22

README 摘要

Running Ollama in GitHub Codespaces Learn how to efficiently run Ollama in GitHub Codespaces for free. GITHUB · INSTAGRAM · YOUTUBE :notebookwithdecorativecover: Table of Contents What is a Codespace? What is Ollama? Setting Up Ollama in GitHub Codespaces Ollama Model Library :star2: What is a Codespace? A codespace is a cloud-hosted development environment tailored for coding. GitHub Codespaces allows you to…

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

常见问题

Ollama-in-GitHub-Codespaces 用什么语言开发?

主要使用 Jupyter Notebook 编写,目前有 51 个 Star。

如何获取 Ollama-in-GitHub-Codespaces 的源码?

可以直接克隆仓库:git clone https://github.com/BlackTechX011/Ollama-in-GitHub-Codespaces.git,默认分支为 main;安装与运行步骤见仓库 README。

Ollama-in-GitHub-Codespaces 最近还在维护吗?

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

关于

GitHub 原始描述(英文)

Learn all how to run Ollama in GitHub Codespaces for free

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

语言占比

Jupyter Notebook

贡献者

README

Running Ollama in GitHub Codespaces

Learn how to efficiently run Ollama in GitHub Codespaces for free.

BlackTechX - Ollama-in-GitHub-Codespaces stars - Ollama-in-GitHub-Codespaces forks - Ollama-in-GitHub-Codespaces

GITHUB · INSTAGRAM · YOUTUBE

:notebook_with_decorative_cover: Table of Contents

:star2: What is a Codespace?

A codespace is a cloud-hosted development environment tailored for coding. GitHub Codespaces allows you to customize your project by committing configuration files to your repository, creating a consistent and repeatable environment for all users. For more details, refer to the Introduction to dev containers.

:star2: What is Ollama?

Ollama is an open-source project designed to simplify running Large Language Models (LLMs) on local machines. It provides a user-friendly interface and functionality to make advanced AI accessible and customizable.

:wrench: Setting Up Ollama in GitHub Codespaces

Follow these steps to set up and run Ollama in a GitHub Codespace:

1. Open a Codespace

  • Navigate to your repository on GitHub.
  • Click on the Code button and select Open with Codespaces.
  • If you don’t have an existing codespace, create a new one.

2. Install Ollama

  • Open the terminal in your codespace.
  • Run the following command to download and install Ollama:
    curl -fsSL https://ollama.com/install.sh | sh
    

3. Verify the Installation

  • Type ollama in the terminal to verify the installation:
    ollama
    
  • If the installation is successful, you will see a list of available Ollama commands.

4. Start Ollama

  • Run the following command to start Ollama:
    ollama serve
    

5. Run and Chat with Llama 3

  • To run and interact with the Llama 3 model, use the following command:
    ollama run llama3
    

:books: Ollama Model Library

Ollama provides a variety of models that you can download and use. Visit the Ollama model library for a complete list.

Example Models

Here are some example models available for use:

Model Parameters Size Command
Llama 3 8B 4.7GB ollama run llama3
Llama 3 70B 40GB ollama run llama3:70b
Phi 3 Mini 3.8B 2.3GB ollama run phi3
Phi 3 Medium 14B 7.9GB ollama run phi3:medium
Gemma 2B 1.4GB ollama run gemma:2b
Gemma 7B 4.8GB ollama run gemma:7b
Mistral 7B 4.1GB ollama run mistral
Moondream 2 1.4B 829MB ollama run moondream
Neural Chat 7B 4.1GB ollama run neural-chat
Starling 7B 4.1GB ollama run starling-lm
Code Llama 7B 3.8GB ollama run codellama
Llama 2 Uncensored 7B 3.8GB ollama run llama2-uncensored
LLaVA 7B 4.5GB ollama run llava
Solar 10.7B 6.1GB ollama run solar

Important: Ensure that your system meets the following RAM requirements:

  • At least 8 GB of RAM for 7B models
  • At least 16 GB of RAM for 13B models
  • At least 32 GB of RAM for 33B models

By following these steps, you can set up and run Ollama efficiently within GitHub Codespaces, leveraging its cloud-based environment to explore and utilize powerful LLMs.

评论

暂无评论