当前位置: 首页 > news >正文

llama-factory

1.在启智平台上找到没有安装tensorflow的镜像作为基础镜像

把llama-factory的github仓库进行下载,得到zip压缩包,上传到启智平台中,如下:

在这里插入图片描述

2. 执行命令如下

进入文件夹

cd LLaMA-Factory-main

更新pip

python -m pip install --upgrade pip

安装依赖:

pip install -e '.[torch,metrics]' -i https://pypi.tuna.tsinghua.edu.cn/simple/

解决依赖包冲突:

pip install --no-deps -e

进行环境验证:

lamafactory-cli train -h 

输出:

oot@i0435935b1bb4582a32b2a2767606073-task0-0:/tmp/code/cats2/LLaMA-Factory-main# lamafactory-cli train -h 
bash: lamafactory-cli: command not found
root@i0435935b1bb4582a32b2a2767606073-task0-0:/tmp/code/cats2/LLaMA-Factory-main# llamafactory-cli train -h 
usage: llamafactory-cli [-h] [--ray_run_name RAY_RUN_NAME] [--ray_storage_path RAY_STORAGE_PATH] [--ray_num_workers RAY_NUM_WORKERS] [--resources_per_worker RESOURCES_PER_WORKER]
                        [--placement_strategy {SPREAD,PACK,STRICT_SPREAD,STRICT_PACK}]

options:
  -h, --help            show this help message and exit
  --ray_run_name RAY_RUN_NAME, --ray-run-name RAY_RUN_NAME
                        The training results will be saved at `<ray_storage_path>/ray_run_name`. (default: None)
  --ray_storage_path RAY_STORAGE_PATH, --ray-storage-path RAY_STORAGE_PATH
                        The storage path to save training results to (default: ./saves)
  --ray_num_workers RAY_NUM_WORKERS, --ray-num-workers RAY_NUM_WORKERS
                        The number of workers for Ray training. Default is 1 worker. (default: 1)
  --resources_per_worker RESOURCES_PER_WORKER, --resources-per-worker RESOURCES_PER_WORKER
                        The resources per worker for Ray training. Default is to use 1 GPU per worker. (default: {'GPU': 1})
  --placement_strategy {SPREAD,PACK,STRICT_SPREAD,STRICT_PACK}, --placement-strategy {SPREAD,PACK,STRICT_SPREAD,STRICT_PACK}
                        The placement strategy for Ray training. Default is PACK. (default: PACK)

文章转载自:
http://caecilian.lbooon.cn
http://acidification.lbooon.cn
http://backgrounder.lbooon.cn
http://already.lbooon.cn
http://autoinoculation.lbooon.cn
http://barren.lbooon.cn
http://byrd.lbooon.cn
http://boozy.lbooon.cn
http://cenogamy.lbooon.cn
http://advantaged.lbooon.cn
http://bind.lbooon.cn
http://chetah.lbooon.cn
http://catalectic.lbooon.cn
http://animateur.lbooon.cn
http://arafura.lbooon.cn
http://allow.lbooon.cn
http://alae.lbooon.cn
http://cetological.lbooon.cn
http://bookable.lbooon.cn
http://bookshelves.lbooon.cn
http://aigrette.lbooon.cn
http://aquiprata.lbooon.cn
http://bonderize.lbooon.cn
http://abacterial.lbooon.cn
http://accessable.lbooon.cn
http://acquiescent.lbooon.cn
http://bennington.lbooon.cn
http://baneful.lbooon.cn
http://brahman.lbooon.cn
http://chineselantern.lbooon.cn
http://www.dtcms.com/a/46179.html

相关文章:

  • 132. 分割回文串 II | 最少分割次数
  • Linux网络相关概念和重要知识(1)(网络协议、网络通信)
  • Hashmap
  • FPGA开发,使用Deepseek V3还是R1(8):FPGA的全流程(简略版)
  • Pytorch使用手册—Raspberry Pi 4 上的实时推理(30 FPS!)(专题三十六)
  • C++对象特性
  • Spring Boot分层架构的优势
  • 记忆化搜索(典型算法思想)—— OJ例题算法解析思路
  • SAP-ABAP:SAP的MM模块BAPI的详细介绍
  • 知识库ragflow和dify安装
  • Python Cookbook-2.22 计算目录间的相对路径
  • JS逆向-233网校sid参数和sign参数
  • EfficientViT模型详解及代码复现
  • upload
  • 线程状态与线程方法详解
  • 三支一扶入职体检不合格项目全解析
  • 算法day5 bfs搜索
  • 图像分类项目1:基于卷积神经网络的动物图像分类
  • JavaEE基础之- 过滤器和监听器Filter and Listener
  • 迷你世界脚本状态接口:Buff
  • 在.net中,async/await的理解
  • 【实战篇】【深度解析DeepSeek:从机器学习到深度学习的全场景落地指南】
  • 通往 AI 之路:Python 机器学习入门-面向对象编程
  • 数据库拓展操作
  • 阿里云 Qwen2.5-Max:超大规模 MoE 模型架构和性能评估
  • 大白话面试遇难题,应对策略是什么?
  • 微信小程序开发学习笔记
  • 知识库技术选型:主流Embedding模型特性对比
  • 阿里云ECS Ubuntu PPTP VPN无法访问以太网
  • 使用SPI总线与外部传感器通信,使用ECU抽象