koboldcpp/examples
Aditya Singh c0c7e147e7
requirements : bump torch to 2.11.0 (#23503)
* requirements: relax torch~=2.6.0 to torch>=2.6.0 for convert_hf_to_gguf

The ~=2.6.0 operator resolves to >=2.6.0, <2.7.0, which fails on
PyPI for platform/CPython combinations where 2.6.x is not present.
The accompanying comment already says 'PyTorch 2.6.0 or later', so
the looser >=2.6.0 matches the documented intent and unblocks
pip install -r requirements/requirements-convert_hf_to_gguf.txt.

Fixes #23408

* requirements: bump torch floor to 2.11.0 per maintainer

* requirements: pin torch to ==2.11.0 per project policy

* requirements: pin mtmd torch and torchvision to 2.11.0/0.26.0 per project policy

* requirements: suppress check_requirements pin warning on mtmd

The check_requirements script flags '==' on lines in files matched by
*/**/requirements*.txt. Append the documented suppression comment to the
pinned torch and torchvision lines (and to the s390x platform marker lines)
so the check passes while keeping the pins required by project policy.

* ty: silence Tensor/Module union check on model[0].auto_model

With torch 2.11.0 stubs, nn.Sequential.__getitem__ now returns
Tensor | Module rather than Module, so model[0].auto_model fails ty
on the SentenceTransformer code path. The runtime behavior is
unchanged because SentenceTransformer always wraps a Module at
index 0. Adding a targeted unresolved-attribute ignore keeps the
type-check green without altering behavior. A follow-up issue
tracks typing the variable explicitly.
2026-05-23 18:24:39 +02:00
..
batched libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
batched.swift examples : remove references to make in examples [no ci] (#15457) 2025-08-21 06:12:28 +02:00
convert-llama2c-to-ggml libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
debug common: fix missing exports in llama-common (#22340) 2026-04-27 08:06:39 +03:00
deprecation-warning Fix locale-dependent float printing in GGUF metadata (#17331) 2026-03-04 09:30:40 +01:00
diffusion examples: refactor diffusion generation (#22590) 2026-05-04 20:19:30 +08:00
embedding libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
eval-callback common: fix missing exports in llama-common (#22340) 2026-04-27 08:06:39 +03:00
gen-docs spec : refactor params (#22397) 2026-04-28 09:07:33 +03:00
gguf Fix locale-dependent float printing in GGUF metadata (#17331) 2026-03-04 09:30:40 +01:00
gguf-hash Fix locale-dependent float printing in GGUF metadata (#17331) 2026-03-04 09:30:40 +01:00
idle libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
llama-eval llama-eval : add per-task summary stats (#23151) 2026-05-19 09:46:05 +03:00
llama.android cmake : add install() for impl libraries + fix apple builds (#23511) 2026-05-22 11:46:26 +03:00
llama.swiftui llama : deprecate llama_kv_self_ API (#14030) 2025-06-06 14:11:15 +03:00
lookahead libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
lookup spec : refactor params (#22397) 2026-04-28 09:07:33 +03:00
model-conversion requirements : bump torch to 2.11.0 (#23503) 2026-05-23 18:24:39 +02:00
parallel libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
passkey libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
retrieval libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
simple Fix locale-dependent float printing in GGUF metadata (#17331) 2026-03-04 09:30:40 +01:00
simple-chat Fix locale-dependent float printing in GGUF metadata (#17331) 2026-03-04 09:30:40 +01:00
simple-cmake-pkg examples : add missing code block end marker [no ci] (#17756) 2025-12-04 14:17:30 +01:00
speculative spec : fix vocab compat checks in spec example (#22426) 2026-04-30 08:18:25 +03:00
speculative-simple spec : parallel drafting support (#22838) 2026-05-11 19:09:43 +03:00
sycl sycl : fix error when use -mg 1 error (#23140) 2026-05-18 08:11:19 +03:00
training libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
CMakeLists.txt tests : move save-load-state from examples to tests (#23336) 2026-05-21 14:41:50 +03:00
convert_legacy_llama.py metadata: Detailed Dataset Authorship Metadata (#8875) 2024-11-13 21:10:38 +11:00
json_schema_pydantic_example.py py : type-check all Python scripts with Pyright (#8341) 2024-07-07 15:04:39 -04:00
json_schema_to_grammar.py ci : switch from pyright to ty (#20826) 2026-03-21 08:54:34 +01:00
llama.vim chore : correct typos [no ci] (#20041) 2026-03-05 08:50:21 +01:00
pydantic_models_to_grammar.py ci : switch from pyright to ty (#20826) 2026-03-21 08:54:34 +01:00
pydantic_models_to_grammar_examples.py llama : move end-user examples to tools directory (#13249) 2025-05-02 20:27:13 +02:00
reason-act.sh scripts : make the shell scripts cross-platform (#14341) 2025-06-30 10:17:18 +02:00
regex_to_grammar.py py : switch to snake_case (#8305) 2024-07-05 07:53:33 +03:00
server-llama2-13B.sh scripts : make the shell scripts cross-platform (#14341) 2025-06-30 10:17:18 +02:00
server_embd.py llama : fix FA when KV cache is not used (i.e. embeddings) (#12825) 2025-04-08 19:54:51 +03:00
ts-type-to-grammar.sh scripts : make the shell scripts cross-platform (#14341) 2025-06-30 10:17:18 +02:00