Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenNMT/CTranslate2
/ functions
Functions
2,508 in github.com/OpenNMT/CTranslate2
⨍
Functions
2,508
◇
Types & classes
601
↳
Endpoints
4
↓ 1 callers
Function
build_attention
src/decoding.cc:141
↓ 1 callers
Function
build_hypothesis
src/decoding.cc:132
↓ 1 callers
Function
build_prompt
(sp, inputs)
tools/benchmark_tensor_parallel/benchmark.py:27
↓ 1 callers
Function
build_prompt
(tokenizer, dialog)
examples/llama3/chat.py:87
↓ 1 callers
Function
build_prompt
(sp, dialog)
examples/llama2/chat.py:93
↓ 1 callers
Function
builtin_isinf
include/half_float/half.hpp:546
↓ 1 callers
Function
check_opt
(opt, num_source_embeddings)
python/ctranslate2/converters/opennmt_py.py:20
↓ 1 callers
Function
check_prompts
src/models/whisper.cc:163
↓ 1 callers
Function
check_weights_dtype
tests/translator_test.cc:25
↓ 1 callers
Function
classify_variable
src/models/model.cc:472
↓ 1 callers
Method
clear_cache
src/cpu/allocator.cc:67
↓ 1 callers
Function
compute_coverage_penalty
src/decoding.cc:176
↓ 1 callers
Method
compute_logits_for_steps
src/layers/whisper.cc:76
↓ 1 callers
Function
compute_relative_bias
src/layers/attention.cc:102
↓ 1 callers
Function
compute_stride
include/ctranslate2/storage_view.h:38
↓ 1 callers
Function
concat_into
include/nlohmann/json.hpp:4193
↓ 1 callers
Function
concat_length
include/nlohmann/json.hpp:4162
↓ 1 callers
Function
contains
include/nlohmann/json.hpp:14259
↓ 1 callers
Function
contains_model
src/models/model.cc:813
↓ 1 callers
Function
convert_to_wstring
src/filesystem.cc:12
↓ 1 callers
Function
copy_variable
src/models/model.cc:125
↓ 1 callers
Method
cos
src/cpu/vec.h:95
↓ 1 callers
Function
cpu_is_genuine_intel
src/cpu/cpu_info.cc:18
↓ 1 callers
Function
cpu_supports_sse41
src/cpu/cpu_info.cc:22
↓ 1 callers
Function
create_model
src/models/model_factory.cc:31
↓ 1 callers
Method
create_model
include/ctranslate2/models/model_factory.h:21
↓ 1 callers
Function
create_model_reader
python/cpp/replica_pool.h:11
↓ 1 callers
Method
current_spec_revision
src/models/model.cc:168
↓ 1 callers
Function
data_type_to_compute_type
src/types.cc:318
↓ 1 callers
Function
decode_alternatives
src/decoding.cc:1122
↓ 1 callers
Function
destroy_context
src/devices.cc:123
↓ 1 callers
Method
detach_model
include/ctranslate2/replica_pool.h:326
↓ 1 callers
Method
detach_models
Detaches the models used by each replica for unloading. This method is not thread-safe.
include/ctranslate2/replica_pool.h:116
↓ 1 callers
Method
detect_language
src/models/whisper.cc:584
↓ 1 callers
Method
device
include/ctranslate2/models/model.h:63
↓ 1 callers
Function
document_class
(cls, output_dir, class_path, base_path=None, children_paths=None)
docs/generate.py:9
↓ 1 callers
Function
document_function
(output_dir, function_path)
docs/generate.py:41
↓ 1 callers
Function
document_module
(module, module_path, module_map, output_dir)
docs/generate.py:98
↓ 1 callers
Function
dot_product_attention
src/layers/attention.cc:178
↓ 1 callers
Function
dtype_to_typestr
python/cpp/storage_view.cc:36
↓ 1 callers
Function
dtype_with_fallback
tests/translator_test.cc:38
↓ 1 callers
Function
dump_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 callers
Function
dump_profiling
src/profiler.cc:14
↓ 1 callers
Method
empty
include/ctranslate2/storage_view.h:148
↓ 1 callers
Method
encode
src/models/whisper.cc:80
↓ 1 callers
Function
erase
include/nlohmann/json.hpp:19042
↓ 1 callers
Function
expect_vector_eq
tests/test_utils.h:50
↓ 1 callers
Function
fabs
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 callers
Function
feraiseexcept
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 callers
Method
fill
src/cpu/primitives.cc:46
↓ 1 callers
Function
finalize_hypothesis_score
src/decoding.cc:189
↓ 1 callers
Function
finalize_optional_batch
python/cpp/translator.cc:12
↓ 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. */
include/nlohmann/json.hpp:17275
↓ 1 callers
Function
floor
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 callers
Function
format_buffer
include/nlohmann/json.hpp:17763
↓ 1 callers
Function
fpclassify
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 callers
Function
frexp
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 callers
Method
generate
src/models/whisper.cc:121
↓ 1 callers
Method
generate_batch_async
src/generator.cc:7
↓ 1 callers
Function
generate_words
(tokenizer, step_results)
examples/llama3/chat.py:64
↓ 1 callers
Function
generate_words
(sp, step_results)
examples/llama2/chat.py:66
↓ 1 callers
Function
get_batch_state
src/decoding.cc:976
↓ 1 callers
Function
get_beams_divergence_from_prefix
src/decoding.cc:325
↓ 1 callers
Function
get_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 callers
Method
get_candidates
src/vocabulary_map.cc:52
↓ 1 callers
Function
get_cpu_isa
src/cpu/cpu_isa.cc:80
↓ 1 callers
Function
get_data_dir
()
python/tests/test_utils.py:11
↓ 1 callers
Method
get_default_config
Returns the default configuration used by this model.
python/ctranslate2/specs/model_spec.py:350
↓ 1 callers
Function
get_default_level
src/logging.cc:54
↓ 1 callers
Function
get_default_num_threads
src/utils.cc:77
↓ 1 callers
Function
get_device_count
src/devices.cc:47
↓ 1 callers
Function
get_dtype_from_item_size
src/models/model.cc:427
↓ 1 callers
Method
get_falcon_spec
(self, model)
python/ctranslate2/converters/transformers.py:3087
↓ 1 callers
Function
get_first_public_parent
(cls)
docs/generate.py:74
↓ 1 callers
Function
get_impl_ptr
include/nlohmann/json.hpp:20581
↓ 1 callers
Method
get_interleave
include/ctranslate2/layers/attention_layer.h:105
↓ 1 callers
Method
get_model_class
(self, config, default_class)
python/ctranslate2/converters/transformers.py:1853
↓ 1 callers
Method
get_model_file
(self, filename)
python/ctranslate2/converters/transformers.py:179
↓ 1 callers
Method
get_model_id
src/models/model_reader.cc:23
↓ 1 callers
Method
get_model_spec
(self, model)
python/ctranslate2/converters/transformers.py:207
↓ 1 callers
Function
get_module_map
Map true modules to exported name
docs/generate.py:58
↓ 1 callers
Function
get_num_threads
src/cpu/parallel.cc:14
↓ 1 callers
Function
get_preferred_size_multiple
src/types.cc:345
↓ 1 callers
Function
get_prompt_length
src/models/whisper.cc:154
↓ 1 callers
Function
get_ptr
include/nlohmann/json.hpp:20721
↓ 1 callers
Function
get_random_seed
src/random.cc:14
↓ 1 callers
Function
get_relative_position_bucket
src/layers/attention.cc:51
↓ 1 callers
Method
get_required_file
src/models/model_reader.cc:8
↓ 1 callers
Function
get_so_handle
src/cuda/nccl_stub.cc:33
↓ 1 callers
Function
get_so_handle
src/cuda/cublas_stub.cc:53
↓ 1 callers
Method
get_source_vocabulary_size
Returns the source vocabulary size expected by the model.
python/ctranslate2/specs/model_spec.py:479
↓ 1 callers
Method
get_target_vocabulary_size
Returns the target vocabulary size expected by the model.
python/ctranslate2/specs/model_spec.py:484
↓ 1 callers
Method
get_value
include/nlohmann/json.hpp:12662
↓ 1 callers
Method
get_variables
src/models/model.cc:250
↓ 1 callers
Function
get_vocabs
(vocab)
python/ctranslate2/converters/opennmt_py.py:143
↓ 1 callers
Function
get_vocabs
(vocab)
python/ctranslate2/converters/eole_ct2.py:145
↓ 1 callers
Method
get_vocabulary
(self, model, tokenizer)
python/ctranslate2/converters/transformers.py:219
↓ 1 callers
Method
get_vocabulary_size
Returns the vocabulary size expected by the model.
python/ctranslate2/specs/model_spec.py:590
↓ 1 callers
Function
get_vocabulary_tokens
examples/wngt2020/main.cc:6
↓ 1 callers
Function
gpu_has_int8_tensor_cores
src/cuda/utils.cc:213
← previous
next →
601–700 of 2,508, ranked by callers