MCPcopy Create free account

hub / github.com/OpenNMT/CTranslate2 / functions

Functions2,508 in github.com/OpenNMT/CTranslate2

↓ 1 callersFunctionbuild_attention
src/decoding.cc:141
↓ 1 callersFunctionbuild_hypothesis
src/decoding.cc:132
↓ 1 callersFunctionbuild_prompt
(sp, inputs)
tools/benchmark_tensor_parallel/benchmark.py:27
↓ 1 callersFunctionbuild_prompt
(tokenizer, dialog)
examples/llama3/chat.py:87
↓ 1 callersFunctionbuild_prompt
(sp, dialog)
examples/llama2/chat.py:93
↓ 1 callersFunctionbuiltin_isinf
include/half_float/half.hpp:546
↓ 1 callersFunctioncheck_opt
(opt, num_source_embeddings)
python/ctranslate2/converters/opennmt_py.py:20
↓ 1 callersFunctioncheck_prompts
src/models/whisper.cc:163
↓ 1 callersFunctioncheck_weights_dtype
tests/translator_test.cc:25
↓ 1 callersFunctionclassify_variable
src/models/model.cc:472
↓ 1 callersMethodclear_cache
src/cpu/allocator.cc:67
↓ 1 callersFunctioncompute_coverage_penalty
src/decoding.cc:176
↓ 1 callersMethodcompute_logits_for_steps
src/layers/whisper.cc:76
↓ 1 callersFunctioncompute_relative_bias
src/layers/attention.cc:102
↓ 1 callersFunctioncompute_stride
include/ctranslate2/storage_view.h:38
↓ 1 callersFunctionconcat_into
include/nlohmann/json.hpp:4193
↓ 1 callersFunctionconcat_length
include/nlohmann/json.hpp:4162
↓ 1 callersFunctioncontains
include/nlohmann/json.hpp:14259
↓ 1 callersFunctioncontains_model
src/models/model.cc:813
↓ 1 callersFunctionconvert_to_wstring
src/filesystem.cc:12
↓ 1 callersFunctioncopy_variable
src/models/model.cc:125
↓ 1 callersMethodcos
src/cpu/vec.h:95
↓ 1 callersFunctioncpu_is_genuine_intel
src/cpu/cpu_info.cc:18
↓ 1 callersFunctioncpu_supports_sse41
src/cpu/cpu_info.cc:22
↓ 1 callersFunctioncreate_model
src/models/model_factory.cc:31
↓ 1 callersMethodcreate_model
include/ctranslate2/models/model_factory.h:21
↓ 1 callersFunctioncreate_model_reader
python/cpp/replica_pool.h:11
↓ 1 callersMethodcurrent_spec_revision
src/models/model.cc:168
↓ 1 callersFunctiondata_type_to_compute_type
src/types.cc:318
↓ 1 callersFunctiondecode_alternatives
src/decoding.cc:1122
↓ 1 callersFunctiondestroy_context
src/devices.cc:123
↓ 1 callersMethoddetach_model
include/ctranslate2/replica_pool.h:326
↓ 1 callersMethoddetach_models
Detaches the models used by each replica for unloading. This method is not thread-safe.
include/ctranslate2/replica_pool.h:116
↓ 1 callersMethoddetect_language
src/models/whisper.cc:584
↓ 1 callersMethoddevice
include/ctranslate2/models/model.h:63
↓ 1 callersFunctiondocument_class
(cls, output_dir, class_path, base_path=None, children_paths=None)
docs/generate.py:9
↓ 1 callersFunctiondocument_function
(output_dir, function_path)
docs/generate.py:41
↓ 1 callersFunctiondocument_module
(module, module_path, module_map, output_dir)
docs/generate.py:98
↓ 1 callersFunctiondot_product_attention
src/layers/attention.cc:178
↓ 1 callersFunctiondtype_to_typestr
python/cpp/storage_view.cc:36
↓ 1 callersFunctiondtype_with_fallback
tests/translator_test.cc:38
↓ 1 callersFunctiondump_float
! @brief dump a floating-point number Dump a given floating-point number to output stream @a o. Works internally with @a number_buffer.
include/nlohmann/json.hpp:18683
↓ 1 callersFunctiondump_profiling
src/profiler.cc:14
↓ 1 callersMethodempty
include/ctranslate2/storage_view.h:148
↓ 1 callersMethodencode
src/models/whisper.cc:80
↓ 1 callersFunctionerase
include/nlohmann/json.hpp:19042
↓ 1 callersFunctionexpect_vector_eq
tests/test_utils.h:50
↓ 1 callersFunctionfabs
Absolute value. See also:** Documentation for [std::fabs](https://en.cppreference.com/w/cpp/numeric/math/fabs). \param arg operand \return absolute va
include/half_float/half.hpp:2729
↓ 1 callersFunctionferaiseexcept
Raise exception flags. This raises the specified floating point exceptions and also invokes any additional automatic exception handling as configured
include/half_float/half.hpp:4538
↓ 1 callersMethodfill
src/cpu/primitives.cc:46
↓ 1 callersFunctionfinalize_hypothesis_score
src/decoding.cc:189
↓ 1 callersFunctionfinalize_optional_batch
python/cpp/translator.cc:12
↓ 1 callersFunctionfind_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. */
include/nlohmann/json.hpp:17275
↓ 1 callersFunctionfloor
Nearest integer not greater than half value. See also:** Documentation for [std::floor](https://en.cppreference.com/w/cpp/numeric/math/floor). \param
include/half_float/half.hpp:4079
↓ 1 callersFunctionformat_buffer
include/nlohmann/json.hpp:17763
↓ 1 callersFunctionfpclassify
Classify floating-point value. See also:** Documentation for [std::fpclassify](https://en.cppreference.com/w/cpp/numeric/math/fpclassify). \param arg
include/half_float/half.hpp:4357
↓ 1 callersFunctionfrexp
Decompress floating-point number. See also:** Documentation for [std::frexp](https://en.cppreference.com/w/cpp/numeric/math/frexp). \param arg number
include/half_float/half.hpp:4154
↓ 1 callersMethodgenerate
src/models/whisper.cc:121
↓ 1 callersMethodgenerate_batch_async
src/generator.cc:7
↓ 1 callersFunctiongenerate_words
(tokenizer, step_results)
examples/llama3/chat.py:64
↓ 1 callersFunctiongenerate_words
(sp, step_results)
examples/llama2/chat.py:66
↓ 1 callersFunctionget_batch_state
src/decoding.cc:976
↓ 1 callersFunctionget_beams_divergence_from_prefix
src/decoding.cc:325
↓ 1 callersFunctionget_cached_power_for_binary_exponent
! For a normalized diyfp w = f * 2^e, this function returns a (normalized) cached power-of-ten c = f_c * 2^e_c, such that the exponent of the product
include/nlohmann/json.hpp:17111
↓ 1 callersMethodget_candidates
src/vocabulary_map.cc:52
↓ 1 callersFunctionget_cpu_isa
src/cpu/cpu_isa.cc:80
↓ 1 callersFunctionget_data_dir
()
python/tests/test_utils.py:11
↓ 1 callersMethodget_default_config
Returns the default configuration used by this model.
python/ctranslate2/specs/model_spec.py:350
↓ 1 callersFunctionget_default_level
src/logging.cc:54
↓ 1 callersFunctionget_default_num_threads
src/utils.cc:77
↓ 1 callersFunctionget_device_count
src/devices.cc:47
↓ 1 callersFunctionget_dtype_from_item_size
src/models/model.cc:427
↓ 1 callersMethodget_falcon_spec
(self, model)
python/ctranslate2/converters/transformers.py:3087
↓ 1 callersFunctionget_first_public_parent
(cls)
docs/generate.py:74
↓ 1 callersFunctionget_impl_ptr
include/nlohmann/json.hpp:20581
↓ 1 callersMethodget_interleave
include/ctranslate2/layers/attention_layer.h:105
↓ 1 callersMethodget_model_class
(self, config, default_class)
python/ctranslate2/converters/transformers.py:1853
↓ 1 callersMethodget_model_file
(self, filename)
python/ctranslate2/converters/transformers.py:179
↓ 1 callersMethodget_model_id
src/models/model_reader.cc:23
↓ 1 callersMethodget_model_spec
(self, model)
python/ctranslate2/converters/transformers.py:207
↓ 1 callersFunctionget_module_map
Map true modules to exported name
docs/generate.py:58
↓ 1 callersFunctionget_num_threads
src/cpu/parallel.cc:14
↓ 1 callersFunctionget_preferred_size_multiple
src/types.cc:345
↓ 1 callersFunctionget_prompt_length
src/models/whisper.cc:154
↓ 1 callersFunctionget_ptr
include/nlohmann/json.hpp:20721
↓ 1 callersFunctionget_random_seed
src/random.cc:14
↓ 1 callersFunctionget_relative_position_bucket
src/layers/attention.cc:51
↓ 1 callersMethodget_required_file
src/models/model_reader.cc:8
↓ 1 callersFunctionget_so_handle
src/cuda/nccl_stub.cc:33
↓ 1 callersFunctionget_so_handle
src/cuda/cublas_stub.cc:53
↓ 1 callersMethodget_source_vocabulary_size
Returns the source vocabulary size expected by the model.
python/ctranslate2/specs/model_spec.py:479
↓ 1 callersMethodget_target_vocabulary_size
Returns the target vocabulary size expected by the model.
python/ctranslate2/specs/model_spec.py:484
↓ 1 callersMethodget_value
include/nlohmann/json.hpp:12662
↓ 1 callersMethodget_variables
src/models/model.cc:250
↓ 1 callersFunctionget_vocabs
(vocab)
python/ctranslate2/converters/opennmt_py.py:143
↓ 1 callersFunctionget_vocabs
(vocab)
python/ctranslate2/converters/eole_ct2.py:145
↓ 1 callersMethodget_vocabulary
(self, model, tokenizer)
python/ctranslate2/converters/transformers.py:219
↓ 1 callersMethodget_vocabulary_size
Returns the vocabulary size expected by the model.
python/ctranslate2/specs/model_spec.py:590
↓ 1 callersFunctionget_vocabulary_tokens
examples/wngt2020/main.cc:6
↓ 1 callersFunctiongpu_has_int8_tensor_cores
src/cuda/utils.cc:213
← previousnext →601–700 of 2,508, ranked by callers