安装 Git LFS

安装 Git LFS

我正在跟进指南。当我必须运行这个时trainer

trainer = Seq2SeqTrainer(
    model,
    args,
    train_dataset=tokenized_datasets,
    eval_dataset=tokenized_eval,
    data_collator=data_collator,
    tokenizer=tokenizer,
    compute_metrics=compute_metrics,
)

我得到:

OSError: Looks like you do not have git-lfs installed, please install. You can install from https://git-lfs.github.com/. Then run `git lfs install` (you only have to do this once).

我已经从网页成功安装了它,但是当我运行时git lfs install我得到(松散地翻译):

git: «lfs» is not a git command. See «git --help».

The most similar command is
        log

我在使用 OpenSUSE Leap 15.3。

我也在curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | sudo bash我的终端中运行本指南,这似乎是成功了,因为最后一行说The repository is setup! You can now install packages.,但是当我运行时sudo yum install git-lfs它说sudo: yum: command not found

向上!

相关内容