AI编程工具与演示[Tabbyml, TONGYI Lingma] [现在流行使用github copilot]

FROM: https://agiclass.feishu.cn/docx/ClrVddclboshICxgMmgcOggMnU3

2种编程的AI助手工具

tabbyml [本地版]

描述: Tabby是目前完全开源,从模型到插件都开源的一个AI编程助手。 Tabby分成模型插件两部分

官方文档参考地址: https://tabby.tabbyml.com/docs/getting-started

支持的编码模型:

<style> td {white-space:nowrap;border:1px solid #dee0e3;font-size:10pt;font-style:normal;font-weight:normal;vertical-align:middle;word-break:normal;word-wrap:normal;}</style> <byte-sheet-html-origin data-id="" data-version="4" data-is-embed="true" data-grid-line-hidden="false" data-copy-type="col"><colgroup><col width="283"><col width="269"></colgroup>

Model ID License
TabbyML/StarCoder-1B BigCode-OpenRAIL-M
TabbyML/StarCoder-3B BigCode-OpenRAIL-M
TabbyML/StarCoder-7B BigCode-OpenRAIL-M
TabbyML/CodeLlama-7B Llama 2
TabbyML/CodeLlama-13B Llama 2
TabbyML/DeepseekCoder-1.3B Deepseek License
TabbyML/DeepseekCoder-6.7B Deepseek License

Mac电脑安装

  1. 第一步:安装本地模型

https://tabby.tabbyml.com/docs/installation/
通过Homebrew安装管理命令: brew install tabbyml/tabby/tabby
tabby服务的启动: tabby serve --device metal --model TabbyML/StarCoder-1B

vscode -》扩展 -》 安装 tabby


image.png
  • tabby的代理服务器配置


  • 指定代理服务器配置里的 server - endpoint 指向了本地运行的 8080端口


[server]
endpoint = "http://localhost:8080" # http or https URL
  • 命令行输入 vim ~/.tabby/config.toml
# Index three repositories' source code as additional context for code completion.

[[repositories]]
name = "tabby"
git_url = "https://github.com/TabbyML/tabby.git" # 远程的git项目,但是如果没有代理很容易失败

# git through ssh protocol.
[[repositories]]
name = "CTranslate2"
git_url = "git@github.com:OpenNMT/CTranslate2.git"

# local directory is also supported!
[[repositories]]
name = "dify"
# 你自己下载下来本地的项目, 如果你的项目目录是 /home/xiaoming/Code/Dify
git_url = "file:///Users/taopeng/Desktop/AI/dify-main"
  • 向量化上面的dify模板
    tabby scheduler --now

TONGYI Lingma [云版本]

image.png
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容