当前位置: 首页 > 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)

相关文章:

  • 快递站点管理|基于springboot校园快递站点管理设计与实现(源码+数据库+文档)
  • 头歌实验---C/C++程序设计:实验四:循环结构程序设计
  • 2024贵州大学计算机考研复试上机真题
  • 慢SQL如何定位处理?
  • RuoYi-Cloud-Plus 配置
  • Linux服务器安装cuda和cudnn实战教程
  • (done) MIT6.S081 Interrupts Lecture 学习笔记
  • GPIO及其应用
  • 面试常见问题
  • C++格式讲解
  • 《Operating System Concepts》阅读笔记:p177-p178
  • 专业便捷PDF软件,即开即用
  • 提升系统效能:从流量控制到并发处理的全面解析
  • Linux:进程替换
  • 【漫话机器学习系列】111.指数之和的对数(Log-Sum-Exp)
  • linux--多进程开发(7) 信号、相关函数、信号集及其操作和捕获、SIGCHLD解决僵尸进程
  • Notepad++下载地址【亲测好用】
  • 2025年生成式人工智能应用工程师学习线路
  • 数据库基础(MySQL)
  • 快速上手 Spring Boot:基础使用详解
  • 上海率先推进生物制品分段生产试点,这款国产1类创新药获批上市
  • 30平米的无障碍酒吧里,我们将偏见折叠又摊开
  • 英国首相斯塔默住所起火,警方紧急调查情况
  • 中共中央、国务院印发《生态环境保护督察工作条例》
  • 这些网红果蔬正在收割你的钱包,营养师:吃了个寂寞
  • 印度最新发声:对所有敌对行动均予以反击和回应,不会升级冲突