Commit Graph

4 Commits

Author SHA1 Message Date
Ruben Ortlam d6fc8fe0c7 use unique pointers where possible 2026-03-31 11:22:36 +02:00
Ruben Ortlam 9037b78263 use unique_ptr for llama_context in HF metadata case 2026-03-31 09:26:33 +02:00
Ruben Ortlam 829c250073 tests: allow exporting graph ops from HF file without downloading weights 2026-03-30 15:06:03 +02:00
Ruben Ortlam 128142fe7d
test-backend-ops: allow loading tests from file and parsing model operators into file (#19896)
* tests: allow loading test-backend-ops tests from json

* add error threshold based on op

* add error when file cannot be read

* add graph operator json extraction tool

* add nb parameter for non-contiguous input tensors

* fix view check

* only use view if non-contiguous/permuted, use C++ random instead of rand()

* replace internal API calls with public llama_graph_reserve call

* reduce test description length

* fix nb[0] not getting set for view

* add name to tests

* fix inplace error

* use text file instead of json

* move llama_graph_reserve function to new llama-ext header, move export-graph-ops to tests/

* fix missing declaration

* use pragma once

* fix indent

* fix Windows build
2026-03-12 13:26:00 +01:00