ggml-org/llama.cpp

split: allow --split-max-size option

開放

#6,259 建立於 2024年3月23日

 (4 則留言) (1 個反應) (0 位負責人)C++ (21,812 個分叉)batch import
enhancementgood first issuehelp wantedsplit

倉庫指標

星標
 (124,339 顆星)
PR 合併指標
 (平均合併 6天 8小時) (30 天內合併 389 個 PR)

描述

Motivation

we support --split-max-tensors since:

  • #6135

As mentionned by @Artefact2 in this comment:

allowing to split by file size would be more intuitive (and usually more appropriate since file size is usually the limiting factor, eg 4G for FAT or 50G for HF)

Proposition:

Introduce --split-max-size N(M|G) split strategy to split files in file with a max size of N Megabytes or Gigabytes. As it is not possible to have less than 1 tensor per GGUF, this size is a soft limit.

貢獻者指南