首页 > 其他分享 >Llama-recipes Quick start 的调试

Llama-recipes Quick start 的调试

时间:2024-04-02 20:56:45浏览次数:23  
标签:jupyter recipes start pip notebook conda install Quick

先给出Llama-recipes项目的链接

LLaMa环境配置

conda create -n LLama python=3.10  # 建立虚拟环境
conda activate LLama # 激活虚拟环境
  • 按照LLama recipy 安装包

    cd 你的llama recipy 的存放位置
    
    pip install --extra-index-url https://download.pytorch.org/whl/test/cu118 llama-recipes
    

运行quick start

打开jupyter notebook, 打开前需要下载, 指令

pip install jupyter notebook -i 清华源   # 利用清华源进行安装


# 安装完毕

jupyter notebook  # 启动jupyter notebook


# 找到quick start 一步一步运行

Replicate API 获取

Replicate 为任何人提供了一种在云中运行生成式 AI 模型的简单、快速的方法。 有数千种模型可供使用。

关联你的GitHub账号, 获取token号

出现问题

在运行1.0.3. 2.1- 安装依赖这里出现无法安装fassi-gpu

安装出现清华源不能访问的现象

因此找到你的.condarc文件, 一般在C:\Users\用户名这里。

然后将它里面内容清空

随后, 采用网上说的方法:

conda install -c conda-forge faiss-gpu cudatoolkit=你的nvcc -V的cuda号或比这个低

需要额外安装的包

pip install pillow_heif
pip install opencv-python

报错1

ValueError: unstructured_inference is not installed, pytesseract is not installed and the text of the PDF is not extractable. To process this file, install unstructured_inference, install pytesseract, or remove copy protection from the PDF.

解决

pip install unstructured_inference

报错2

Following dependencies are missing: pikepdf, pypdf. Please install them using `pip install pikepdf pypdf`.
PDF text extraction failed, skip text extraction...

解决

pip install pikepdf pypdf

基本上就可以运行它里面的jupyter notebook了。

标签:jupyter,recipes,start,pip,notebook,conda,install,Quick
From: https://www.cnblogs.com/xiaoyaoxie/p/18111470

相关文章

  • QtQuick 学习笔记(一)容器组件
    1.QGroupBox功能提供分组框支持,可在其中布置多种窗口部件常用函数与组件voidsetChecked(boolchecked)QGroupBox使能voidsetTitle(constQString&title)标题文本设置效果及功能测试GroupBox.cpp#include<QApplication>#include<QDialog>#include......
  • mysql每天都重启动问题排查(mysqld_safe mysqld restarted)
    环境:OS:Centos7DB:mysql5.7 1.测试环境一台机器每天都要重启一次2024-03-31T20:08:10.130560Zmysqld_safemysqldrestarted2024-03-31T20:08:10.183119Z0[Warning]Changedlimits:max_open_files:5000(requested25000)2024-03-31T20:08:10.183338Z0[Warning]......
  • 【Pytest 01】 Get Started!
    文档集合DocumentationGetStarted入门How-toGuides使用指南ReferenceGuides参考指南Explanation解释GetStarted1-3BasicOperationInstallPytestCreateyourfirsttestRunmultipletests4.Assertthatacertainexceptionisraised#contentofte......
  • 【Java编程】【算法面试题】【数组合并】以数组 intervals 表示若干个区间的集合,其中
    原始题目:以数组intervals表示若干个区间的集合,其中单个区间为intervals[i]=[starti,endi]。请你合并所有重叠的区间,并返回一个不重叠的区间数组,该数组需恰好覆盖输入中的所有区间。......
  • Spring Boot 基本配置之依赖管理starter pom
    在SpringBoot快速搭建中搭建了一个没有任何功能的项目,查看其pom.xml文件:项目pom.xml文件有两个核心依赖,分别是spring-boot-starter-parent和spring-boot-starter。仔细观察可知spring-boot-starter-parent中有版本号,而spring-boot-star......
  • 面试题:Spring Boot Starter的功能与使用场景
    SpringBootStarter是SpringBoot框架为了简化项目的初始化和配置工作而设计的一种模块化依赖管理方式。它主要具有以下几个关键功能和使用场景:功能:1.依赖管理每个Starter都是一组相关的依赖项集合,这些依赖项都是为了实现特定功能而预先配置好的。例如,`spring-boo......
  • 快速排序 (Quick Sort)
    publicstaticvoidmain(String[]args){int[]arr={9,5,7,3,1,6,8,4,2};quickSort(arr,0,arr.length-1);}privatestaticvoidquickSort(int[]arr,intleft,intright){if(left>=right){return;}//先排序一遍,再递归......
  • 另一种方式启动tomcat catalina.sh run 前台 catalina.sh start 后台
    如果您想使用catalina.sh来启动Tomcat服务器,您可以按照以下步骤进行:打开终端。导航到Tomcat的bin目录,例如:bashcd/path/to/tomcat/bin使用以下命令之一来启动Tomcat服务器:使用catalina.shrun命令来在前台启动Tomcat。这意味着Tomcat将直接在您的终端窗口中运行,......
  • 快速创建一个spring-boot-starter
    可以使用springspi和import两种方法1.导入starter依赖1.1.maven管理工具<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter</artifactId></dependency>1.2.gradle管理工......
  • 面试官:Spring Boot 微服务中你使用了哪些 starter maven 依赖项?这些 starter 到底是什
    该文章专注于面试,面试只要回答关键点即可,不需要对框架有非常深入的回答,如果你想应付面试,是足够了,抓住关键点面试官:SpringBoot微服务中你使用了哪些startermaven依赖项在SpringBoot微服务中,可以使用大量的StarterMaven依赖项来简化项目配置和快速集成各种功能,包括......