Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tiiny-AI/PowerInfer
/ functions
Functions
18,885 in github.com/Tiiny-AI/PowerInfer
⨍
Functions
18,885
◇
Types & classes
5,497
↳
Endpoints
6
↓ 1 callers
Function
estimateWidth
smallthinker/common/console.cpp:239
↓ 1 callers
Function
estimateWidth
common/console.cpp:236
↓ 1 callers
Method
eval
smallthinker/tests/test-backend-ops.cpp:435
↓ 1 callers
Method
eval_grad
smallthinker/tests/test-backend-ops.cpp:749
↓ 1 callers
Function
eval_id
examples/llava/llava-cli.cpp:29
↓ 1 callers
Method
eval_perf
smallthinker/tests/test-backend-ops.cpp:596
↓ 1 callers
Function
example_calculator
Have the LLM ask to get a calculation done. Here the grammar gets generated by passing the available function models to generate_gbnf_grammar
smallthinker/examples/pydantic_models_to_grammar_examples.py:102
↓ 1 callers
Function
example_concurrent
An example for parallel function calling with a Python function, a pydantic function model and an OpenAI like function definition.
smallthinker/examples/pydantic_models_to_grammar_examples.py:212
↓ 1 callers
Function
example_rce
Minimal test case where the LLM call an arbitrary python function.
smallthinker/examples/pydantic_models_to_grammar_examples.py:50
↓ 1 callers
Function
example_struct
A example structured output based on pydantic models. The LLM will create an entry for a Book database out of an unstructured text. We need n
smallthinker/examples/pydantic_models_to_grammar_examples.py:165
↓ 1 callers
Function
execute_command
smallthinker/ggml/src/ggml-vulkan/vulkan-shaders/vulkan-shaders-gen.cpp:71
↓ 1 callers
Function
exp_ps_sve
smallthinker/ggml/src/ggml-cpu/vec.h:653
↓ 1 callers
Function
expect_content
examples/server/httplib.h:4441
↓ 1 callers
Function
export_gguf
smallthinker/tools/cvector-generator/cvector-generator.cpp:353
↓ 1 callers
Function
export_lora
examples/export-lora/export-lora.cpp:371
↓ 1 callers
Function
export_lora_params_parse
examples/export-lora/export-lora.cpp:140
↓ 1 callers
Function
export_split
(activations_path: str, output_path: str, solved_list: list[int], vram_capacity: int)
powerinfer-py/powerinfer/export_split.py:53
↓ 1 callers
Method
extract_vocabulary_from_model
(self, vocab: Vocab)
smallthinker/examples/convert_legacy_llama.py:920
↓ 1 callers
Function
extras
(help, version, options, doc)
smallthinker/powerinfer/libaz/external/fmt/support/docopt.py:476
↓ 1 callers
Function
f
()
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/lunr/min/lunr.es.min.js:18
↓ 1 callers
Function
f
()
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/lunr/min/lunr.nl.min.js:18
↓ 1 callers
Function
f
()
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/lunr/min/lunr.hu.min.js:18
↓ 1 callers
Function
f
()
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/lunr/min/lunr.ru.min.js:18
↓ 1 callers
Function
f
()
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/lunr/min/lunr.ro.min.js:18
↓ 1 callers
Function
f
()
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/lunr/min/lunr.it.min.js:18
↓ 1 callers
Function
f
()
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/lunr/min/lunr.pt.min.js:18
↓ 1 callers
Function
f
()
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/lunr/min/lunr.fr.min.js:18
↓ 1 callers
Function
f
()
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/lunr/min/lunr.tr.min.js:18
↓ 1 callers
Method
failed_test_suite_count
Gets the number of failed test suites.
smallthinker/powerinfer/libaz/external/fmt/test/gtest/gmock-gtest-all.cc:2450
↓ 1 callers
Method
fallback
smallthinker/powerinfer/libaz/external/fmt/include/fmt/chrono.h:557
↓ 1 callers
Function
fatally_failed
Returns true if and only if the test part fatally failed.
smallthinker/powerinfer/libaz/external/fmt/test/gtest/gtest/gtest.h:7924
↓ 1 callers
Function
fatally_failed
Returns true if and only if the test part fatally failed.
smallthinker/powerinfer/libaz/external/googletest/googletest/include/gtest/gtest-test-part.h:105
↓ 1 callers
Function
fclamp
common/train.cpp:181
↓ 1 callers
Method
fetch_headers
* Setup the fetch headers. * It picks the headers from gMe.headers. * It inserts Authorization only if its non-empty. * @param {string}
smallthinker/tools/server/public_simplechat/simplechat.js:205
↓ 1 callers
Function
fft
Cooley-Tukey FFT poor man's implementation - use something better input is real-valued output is complex-valued
smallthinker/tools/mtmd/mtmd-audio.cpp:82
↓ 1 callers
Function
fi
(e,t)
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/bundle.081f42fc.min.js:27
↓ 1 callers
Function
file
Where in the source file was the expectation spec defined?
smallthinker/powerinfer/libaz/external/fmt/test/gtest/gmock/gmock.h:8932
↓ 1 callers
Function
file
Where in the source file was the expectation spec defined?
smallthinker/powerinfer/libaz/external/googletest/googlemock/include/gmock/gmock-spec-builders.h:693
↓ 1 callers
Function
file_exists
smallthinker/tools/main/main.cpp:53
↓ 1 callers
Function
file_extension
examples/server/httplib.h:2238
↓ 1 callers
Function
file_is_empty
smallthinker/tools/main/main.cpp:58
↓ 1 callers
Function
fillQ80blocks
smallthinker/pocs/vdot/q8dot.cpp:58
↓ 1 callers
Function
fillQ80blocks
pocs/vdot/q8dot.cpp:57
↓ 1 callers
Function
fill_hann_window
(size, periodic=True)
smallthinker/tools/tts/tts-outetts.py:11
↓ 1 callers
Function
filterThoughtFromMsgs
(messages: APIMessage[])
smallthinker/tools/server/webui/src/utils/misc.ts:121
↓ 1 callers
Function
filter_tensor_name
remove any prefix and suffixes from the name CUDA0#blk.0.attn_k.weight#0 => blk.0.attn_k.weight
smallthinker/tools/imatrix/imatrix.cpp:56
↓ 1 callers
Method
find_bpe_rank
llama.cpp:1461
↓ 1 callers
Method
find_bpe_rank
smallthinker/src/llama-vocab.cpp:3018
↓ 1 callers
Function
find_content_type
examples/server/httplib.h:3011
↓ 1 callers
Function
find_escape
smallthinker/powerinfer/libaz/external/fmt/include/fmt/format.h:1697
↓ 1 callers
Function
find_largest_pow10
! For n != 0, returns k, such that pow10 := 10^(k-1) <= n < 10^k. For n == 0, returns 1 and sets pow10 := 1. */
examples/server/json.hpp:17275
↓ 1 callers
Function
find_matching_config
@brief find a matching configItem in a list
smallthinker/powerinfer/libaz/external/cli11/include/CLI/impl/Config_inl.hpp:206
↓ 1 callers
Function
find_multifile_paths
Given any path belonging to a multi-file model (e.g. foo.bin.1), return the whole list of paths in the model.
convert-dense.py:1026
↓ 1 callers
Function
find_multifile_paths
Given any path belonging to a multi-file model (e.g. foo.bin.1), return the whole list of paths in the model.
smallthinker/examples/convert_legacy_llama.py:1178
↓ 1 callers
Method
find_parent_in_data
Helper method to find the most recent parent measured in number of commits for which there is data.
smallthinker/scripts/compare-llama-bench.py:176
↓ 1 callers
Function
find_partial_stop_string
examples/server/server.cpp:238
↓ 1 callers
Function
find_relevant_checkpoints
(checkpoint_paths, newline_criteria, projector)
smallthinker/tools/mtmd/legacy-models/llava_surgery_v2.py:101
↓ 1 callers
Method
find_slot
smallthinker/src/llama-kv-cache-recurrent.cpp:433
↓ 1 callers
Function
find_token
(token_list: Sequence[int], token: str)
smallthinker/gguf-py/gguf/scripts/gguf_new_metadata.py:36
↓ 1 callers
Method
fix
(self)
smallthinker/powerinfer/libaz/external/fmt/support/docopt.py:40
↓ 1 callers
Method
fix_identities
Make pattern-tree tips point to same object if they are equal.
smallthinker/powerinfer/libaz/external/fmt/support/docopt.py:45
↓ 1 callers
Method
fix_repeating_arguments
Fix elements that should accumulate/increment values.
smallthinker/powerinfer/libaz/external/fmt/support/docopt.py:57
↓ 1 callers
Function
flatten_state_dict
(state_dict, parent_key='', sep='.')
smallthinker/tools/tts/convert_pt_to_hf.py:52
↓ 1 callers
Function
floor_log10_pow2_minus_log10_4_over_3
Various fast log computations.
smallthinker/powerinfer/libaz/external/fmt/include/fmt/format-inl.h:210
↓ 1 callers
Method
flush
For GPU tensors, we need to allocate them in VRAM as much as possible, and update the tensor data in-place. If the VRAM budget is exceeded, we allocat
llama.cpp:3048
↓ 1 callers
Method
flush
smallthinker/powerinfer/moe_sparse_pipeline/expert_bundle.cpp:42
↓ 1 callers
Function
fnv_hash
Computes FNV-1a hash of the data
smallthinker/tools/server/utils.hpp:1320
↓ 1 callers
Function
foo
smallthinker/powerinfer/libaz/external/fmt/test/static-export-test/library.cc:3
↓ 1 callers
Method
footer_paragraph_width
Set the footer paragraph width
smallthinker/powerinfer/libaz/external/cli11/include/CLI/FormatterFwd.hpp:97
↓ 1 callers
Function
formal_usage
(section)
smallthinker/powerinfer/libaz/external/fmt/support/docopt.py:470
↓ 1 callers
Function
format
smallthinker/powerinfer/libaz/external/fmt/include/fmt/color.h:551
↓ 1 callers
Method
format
smallthinker/powerinfer/libaz/external/fmt/test/base-test.cc:845
↓ 1 callers
Method
format
smallthinker/powerinfer/libaz/external/fmt/include/fmt/std.h:370
↓ 1 callers
Function
formatArray
(ctx, value, recurseTimes, visibleKeys, keys)
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/lunr/wordcut.js:6431
↓ 1 callers
Method
formatGrammar
()
examples/server/public/json-schema-to-grammar.mjs:105
↓ 1 callers
Function
formatPrimitive
(ctx, value)
smallthinker/powerinfer/libaz/external/fmt/doc-html/assets/javascripts/lunr/wordcut.js:6407
↓ 1 callers
Function
format_buffer
examples/server/json.hpp:17763
↓ 1 callers
Method
format_custom
smallthinker/powerinfer/libaz/external/fmt/include/fmt/base.h:2267
↓ 1 callers
Function
format_detokenized_response
smallthinker/tools/server/utils.hpp:954
↓ 1 callers
Function
format_detokenized_response
examples/server/server.cpp:2225
↓ 1 callers
Function
format_embeddings_response_oaicompat
smallthinker/tools/server/utils.hpp:825
↓ 1 callers
Method
format_grammar
smallthinker/common/json-schema-to-grammar.cpp:988
↓ 1 callers
Method
format_grammar
(self)
smallthinker/examples/json_schema_to_grammar.py:747
↓ 1 callers
Method
format_grammar
(self)
examples/json-schema-to-grammar.py:100
↓ 1 callers
Function
format_infill
format infill task
smallthinker/tools/server/utils.hpp:285
↓ 1 callers
Function
format_logit_bias
smallthinker/tools/server/utils.hpp:960
↓ 1 callers
Function
format_message
smallthinker/powerinfer/libaz/external/fmt/test/format-test.cc:1918
↓ 1 callers
Method
format_n_bytes_to_str
(num: int)
smallthinker/gguf-py/gguf/gguf_writer.py:1065
↓ 1 callers
Function
format_prompt
(question)
smallthinker/tools/server/chat.mjs:57
↓ 1 callers
Function
format_prompt
(question)
examples/server/chat.mjs:56
↓ 1 callers
Function
format_rerank
format rerank task: [BOS]query[EOS][SEP]doc[EOS]
smallthinker/tools/server/utils.hpp:264
↓ 1 callers
Function
format_response_rerank
smallthinker/tools/server/utils.hpp:867
↓ 1 callers
Method
format_shard_names
(self, path: Path)
smallthinker/gguf-py/gguf/gguf_writer.py:159
↓ 1 callers
Function
format_to
smallthinker/powerinfer/libaz/external/fmt/include/fmt/format.h:4170
↓ 1 callers
Function
format_tokenizer_response
smallthinker/tools/server/utils.hpp:948
↓ 1 callers
Function
format_tokenizer_response
examples/server/server.cpp:2219
↓ 1 callers
Function
forward
examples/baby-llama/baby-llama.cpp:465
↓ 1 callers
Method
forward
smallthinker/powerinfer/powerinfer-cpu/src/fused_sparse_ffn.cpp:197
↓ 1 callers
Method
forward
smallthinker/powerinfer/fused_sparse_moe/fused_sparse_moe.cpp:200
↓ 1 callers
Method
forward
smallthinker/powerinfer/moe_sparse_pipeline/pipeline.cpp:271
← previous
next →
6,801–6,900 of 18,885, ranked by callers