MCPcopy Create free account

hub / github.com/OpenNMT/CTranslate2 / functions

Functions2,508 in github.com/OpenNMT/CTranslate2

↓ 1 callersFunctiongpu_supports_int8
src/cuda/utils.cc:209
↓ 1 callersFunctiongrisu2_digit_gen
! Generates V = buffer * 10^decimal_exponent, such that M- <= V <= M+. M- and M+ must be normalized and share the same exponent -60 <= e <= -32. */
include/nlohmann/json.hpp:17370
↓ 1 callersFunctionhalf2float_impl
Convert half-precision to IEEE single-precision. Credit for this goes to [Jeroen van der Zijp](ftp://ftp.fox-toolkit.org/pub/fasthalffloatconversion.p
include/half_float/half.hpp:1096
↓ 1 callersMethodhas_cross_attention
include/ctranslate2/layers/transformer.h:113
↓ 1 callersFunctionhas_gpu
src/cuda/utils.cc:183
↓ 1 callersFunctionhash
include/nlohmann/json.hpp:5951
↓ 1 callersFunctionhave_same_compute_capability
src/cuda/utils.cc:241
↓ 1 callersFunctioninit_isa
src/cpu/cpu_isa.cc:44
↓ 1 callersFunctioninit_profiling
src/profiler.cc:9
↓ 1 callersMethodinput_size
src/layers/common.cc:496
↓ 1 callersFunctionint_to_string
include/nlohmann/json.hpp:5108
↓ 1 callersFunctionis_negative_number
include/nlohmann/json.hpp:18572
↓ 1 callersFunctionis_number
@brief return whether value is a number @sa https://json.nlohmann.me/api/basic_json/is_number/
include/nlohmann/json.hpp:20494
↓ 1 callersFunctionis_structured
@brief return whether type is structured @sa https://json.nlohmann.me/api/basic_json/is_structured/
include/nlohmann/json.hpp:20473
↓ 1 callersFunctionisa_to_str
src/cpu/cpu_isa.cc:26
↓ 1 callersMethodload_tokenizer
(self, tokenizer_class, model_name_or_path, **kwargs)
python/ctranslate2/converters/transformers.py:176
↓ 1 callersFunctionload_vocab
(path)
python/ctranslate2/converters/marian.py:118
↓ 1 callersFunctionlog_cublas_version
src/cuda/cublas_stub.cc:35
↓ 1 callersFunctionlog_nccl_version
src/cuda/nccl_stub.cc:23
↓ 1 callersFunctionmain
()
tools/benchmark_tensor_parallel/benchmark.py:134
↓ 1 callersFunctionmain
()
tools/benchmark/benchmark.py:259
↓ 1 callersFunctionmain
()
python/ctranslate2/converters/opus_mt.py:30
↓ 1 callersFunctionmain
()
python/ctranslate2/converters/marian.py:295
↓ 1 callersFunctionmain
()
python/ctranslate2/converters/fairseq.py:304
↓ 1 callersFunctionmain
()
python/ctranslate2/converters/opennmt_tf.py:388
↓ 1 callersFunctionmain
()
python/ctranslate2/converters/openai_gpt2.py:81
↓ 1 callersFunctionmain
()
python/ctranslate2/converters/transformers.py:3613
↓ 1 callersFunctionmain
()
python/ctranslate2/converters/opennmt_py.py:355
↓ 1 callersFunctionmain
()
python/ctranslate2/converters/eole_ct2.py:342
↓ 1 callersFunctionmain
()
examples/llama3/chat.py:8
↓ 1 callersFunctionmain
()
examples/llama2/chat.py:8
↓ 1 callersFunctionmake_alibi
src/layers/transformer.cc:474
↓ 1 callersFunctionmake_linear_layers
src/layers/attention_layer.cc:54
↓ 1 callersFunctionmake_rotary_embeddings
src/layers/attention_layer.cc:68
↓ 1 callersFunctionmap_v1_variable_name
src/models/transformer.cc:16
↓ 1 callersFunctionmatmul_with_relative_representations
src/layers/attention.cc:128
↓ 1 callersFunctionmayiuse_mkl_init
src/cpu/backend.cc:10
↓ 1 callersMethodmean
include/ctranslate2/primitives.h:32
↓ 1 callersFunctionmodf
Extract integer and fractional parts. See also:** Documentation for [std::modf](https://en.cppreference.com/w/cpp/numeric/math/modf). \param arg numbe
include/half_float/half.hpp:4219
↓ 1 callersFunctionmove_variables
src/models/model.cc:102
↓ 1 callersMethodmulti_query
include/ctranslate2/layers/attention_layer.h:44
↓ 1 callersFunctionmultinomial_kernel
src/ops/multinomial_cpu.cc:9
↓ 1 callersFunctionncclCommDestroy
src/cuda/nccl_stub.cc:66
↓ 1 callersFunctionncclCommFinalize
src/cuda/nccl_stub.cc:72
↓ 1 callersFunctionncclCommInitRank
src/cuda/nccl_stub.cc:60
↓ 1 callersFunctionncclGetUniqueId
src/cuda/nccl_stub.cc:54
↓ 1 callersFunctionnegative_dtw
src/dtw.cc:40
↓ 1 callersMethodnormalized_score
include/ctranslate2/scoring.h:26
↓ 1 callersMethodnum_active_batches
python/cpp/replica_pool.h:101
↓ 1 callersMethodnum_active_jobs
src/thread_pool.cc:172
↓ 1 callersMethodnum_bytes
(self)
python/ctranslate2/specs/model_spec.py:656
↓ 1 callersMethodnum_bytes
(self)
python/ctranslate2/specs/model_spec.py:743
↓ 1 callersMethodnum_examples
include/ctranslate2/batch_reader.h:139
↓ 1 callersMethodnum_inputs
include/ctranslate2/layers/common.h:78
↓ 1 callersMethodnum_positions
src/layers/common.cc:199
↓ 1 callersMethodnum_queued_jobs
src/thread_pool.cc:168
↓ 1 callersMethodnum_replicas
python/cpp/replica_pool.h:93
↓ 1 callersMethodnum_streams
include/ctranslate2/batch_reader.h:36
↓ 1 callersMethodnum_threads
src/thread_pool.cc:164
↓ 1 callersFunctionoperator+
! @brief add to iterator @pre The iterator is initialized; i.e. `m_object != nullptr`. */
include/nlohmann/json.hpp:13408
↓ 1 callersMethodoperator+
add to iterator
include/nlohmann/json.hpp:13633
↓ 1 callersFunctionoperator+=
@brief add an object to an array @sa https://json.nlohmann.me/api/basic_json/operator+=/
include/nlohmann/json.hpp:22283
↓ 1 callersFunctionoperator-
! @brief subtract from iterator @pre The iterator is initialized; i.e. `m_object != nullptr`. */
include/nlohmann/json.hpp:13430
↓ 1 callersFunctionoperator<
include/nlohmann/json.hpp:2886
↓ 1 callersMethodoperator==
include/nlohmann/json.hpp:12691
↓ 1 callersFunctionpopen_with
(inter_threads, intra_threads)
tools/tune_inter_intra.py:30
↓ 1 callersMethodpost
include/ctranslate2/replica_pool.h:61
↓ 1 callersMethodpost_examples
include/ctranslate2/replica_pool.h:157
↓ 1 callersMethodprocess_linear_weights
This method runs some precomputations on linear weights when possible.
src/models/model.cc:389
↓ 1 callersMethodproducer
(self)
python/ctranslate2/extensions.py:442
↓ 1 callersFunctionraise_unsupported
(reasons)
python/ctranslate2/converters/utils.py:107
↓ 1 callersFunctionregister_encoder
python/cpp/encoder.cc:48
↓ 1 callersFunctionregister_extensions
Registers additional attributes to compiled modules.
python/ctranslate2/extensions.py:19
↓ 1 callersFunctionregister_generation_result
python/cpp/generation_result.cc:10
↓ 1 callersFunctionregister_generator
python/cpp/generator.cc:125
↓ 1 callersFunctionregister_logging
python/cpp/logging.cc:8
↓ 1 callersFunctionregister_mpi
python/cpp/mpi.cc:10
↓ 1 callersFunctionregister_scoring_result
python/cpp/scoring_result.cc:10
↓ 1 callersFunctionregister_storage_view
python/cpp/storage_view.cc:99
↓ 1 callersFunctionregister_translation_result
python/cpp/translation_result.cc:10
↓ 1 callersFunctionregister_translation_stats
python/cpp/execution_stats.cc:8
↓ 1 callersFunctionregister_translator
python/cpp/translator.cc:274
↓ 1 callersMethodregister_variable
src/models/model.cc:273
↓ 1 callersMethodregister_vocabulary_mapping
Registers a vocabulary mapping file. Arguments: path: Path to the vocabulary mapping file.
python/ctranslate2/specs/model_spec.py:504
↓ 1 callersFunctionregister_wav2vec2
python/cpp/wav2vec2.cc:22
↓ 1 callersFunctionregister_wav2vec2bert
python/cpp/wav2vec2bert.cc:22
↓ 1 callersFunctionregister_whisper
python/cpp/whisper.cc:117
↓ 1 callersFunctionrelu_
include/ctranslate2/ops/flash-attention/utils.h:241
↓ 1 callersFunctionremove_sign
* Overload to make the compiler happy while it is instantiating * dump_integer for number_unsigned_t. * Must never be called. */
include/nlohmann/json.hpp:18824
↓ 1 callersFunctionreplace_unknown_tokens
src/models/sequence_to_sequence.cc:288
↓ 1 callersMethodrequested_compute_type
include/ctranslate2/models/model.h:75
↓ 1 callersFunctionresolve_compute_type
src/types.cc:156
↓ 1 callersFunctionresolve_cuda_allocator
src/cuda/allocator.cc:144
↓ 1 callersFunctionround
Nearest integer. See also:** Documentation for [std::round](https://en.cppreference.com/w/cpp/numeric/math/round). \param arg half to round \return ne
include/half_float/half.hpp:4095
↓ 1 callersMethodround_before_cast_in_quantization
include/ctranslate2/models/model.h:87
↓ 1 callersMethodsave_as_json
Saves the configuration as a JSON file.
python/ctranslate2/specs/model_spec.py:311
↓ 1 callersFunctionsax_parse
include/nlohmann/json.hpp:23253
↓ 1 callersMethodscore_file
python/cpp/translator.cc:225
↓ 1 callersMethodscore_raw_text_file
include/ctranslate2/translator.h:231
↓ 1 callersMethodset_alignment_heads
src/layers/transformer.cc:565
← previousnext →701–800 of 2,508, ranked by callers