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
gpu_supports_int8
src/cuda/utils.cc:209
↓ 1 callers
Function
grisu2_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 callers
Function
half2float_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 callers
Method
has_cross_attention
include/ctranslate2/layers/transformer.h:113
↓ 1 callers
Function
has_gpu
src/cuda/utils.cc:183
↓ 1 callers
Function
hash
include/nlohmann/json.hpp:5951
↓ 1 callers
Function
have_same_compute_capability
src/cuda/utils.cc:241
↓ 1 callers
Function
init_isa
src/cpu/cpu_isa.cc:44
↓ 1 callers
Function
init_profiling
src/profiler.cc:9
↓ 1 callers
Method
input_size
src/layers/common.cc:496
↓ 1 callers
Function
int_to_string
include/nlohmann/json.hpp:5108
↓ 1 callers
Function
is_negative_number
include/nlohmann/json.hpp:18572
↓ 1 callers
Function
is_number
@brief return whether value is a number @sa https://json.nlohmann.me/api/basic_json/is_number/
include/nlohmann/json.hpp:20494
↓ 1 callers
Function
is_structured
@brief return whether type is structured @sa https://json.nlohmann.me/api/basic_json/is_structured/
include/nlohmann/json.hpp:20473
↓ 1 callers
Function
isa_to_str
src/cpu/cpu_isa.cc:26
↓ 1 callers
Method
load_tokenizer
(self, tokenizer_class, model_name_or_path, **kwargs)
python/ctranslate2/converters/transformers.py:176
↓ 1 callers
Function
load_vocab
(path)
python/ctranslate2/converters/marian.py:118
↓ 1 callers
Function
log_cublas_version
src/cuda/cublas_stub.cc:35
↓ 1 callers
Function
log_nccl_version
src/cuda/nccl_stub.cc:23
↓ 1 callers
Function
main
()
tools/benchmark_tensor_parallel/benchmark.py:134
↓ 1 callers
Function
main
()
tools/benchmark/benchmark.py:259
↓ 1 callers
Function
main
()
python/ctranslate2/converters/opus_mt.py:30
↓ 1 callers
Function
main
()
python/ctranslate2/converters/marian.py:295
↓ 1 callers
Function
main
()
python/ctranslate2/converters/fairseq.py:304
↓ 1 callers
Function
main
()
python/ctranslate2/converters/opennmt_tf.py:388
↓ 1 callers
Function
main
()
python/ctranslate2/converters/openai_gpt2.py:81
↓ 1 callers
Function
main
()
python/ctranslate2/converters/transformers.py:3613
↓ 1 callers
Function
main
()
python/ctranslate2/converters/opennmt_py.py:355
↓ 1 callers
Function
main
()
python/ctranslate2/converters/eole_ct2.py:342
↓ 1 callers
Function
main
()
examples/llama3/chat.py:8
↓ 1 callers
Function
main
()
examples/llama2/chat.py:8
↓ 1 callers
Function
make_alibi
src/layers/transformer.cc:474
↓ 1 callers
Function
make_linear_layers
src/layers/attention_layer.cc:54
↓ 1 callers
Function
make_rotary_embeddings
src/layers/attention_layer.cc:68
↓ 1 callers
Function
map_v1_variable_name
src/models/transformer.cc:16
↓ 1 callers
Function
matmul_with_relative_representations
src/layers/attention.cc:128
↓ 1 callers
Function
mayiuse_mkl_init
src/cpu/backend.cc:10
↓ 1 callers
Method
mean
include/ctranslate2/primitives.h:32
↓ 1 callers
Function
modf
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 callers
Function
move_variables
src/models/model.cc:102
↓ 1 callers
Method
multi_query
include/ctranslate2/layers/attention_layer.h:44
↓ 1 callers
Function
multinomial_kernel
src/ops/multinomial_cpu.cc:9
↓ 1 callers
Function
ncclCommDestroy
src/cuda/nccl_stub.cc:66
↓ 1 callers
Function
ncclCommFinalize
src/cuda/nccl_stub.cc:72
↓ 1 callers
Function
ncclCommInitRank
src/cuda/nccl_stub.cc:60
↓ 1 callers
Function
ncclGetUniqueId
src/cuda/nccl_stub.cc:54
↓ 1 callers
Function
negative_dtw
src/dtw.cc:40
↓ 1 callers
Method
normalized_score
include/ctranslate2/scoring.h:26
↓ 1 callers
Method
num_active_batches
python/cpp/replica_pool.h:101
↓ 1 callers
Method
num_active_jobs
src/thread_pool.cc:172
↓ 1 callers
Method
num_bytes
(self)
python/ctranslate2/specs/model_spec.py:656
↓ 1 callers
Method
num_bytes
(self)
python/ctranslate2/specs/model_spec.py:743
↓ 1 callers
Method
num_examples
include/ctranslate2/batch_reader.h:139
↓ 1 callers
Method
num_inputs
include/ctranslate2/layers/common.h:78
↓ 1 callers
Method
num_positions
src/layers/common.cc:199
↓ 1 callers
Method
num_queued_jobs
src/thread_pool.cc:168
↓ 1 callers
Method
num_replicas
python/cpp/replica_pool.h:93
↓ 1 callers
Method
num_streams
include/ctranslate2/batch_reader.h:36
↓ 1 callers
Method
num_threads
src/thread_pool.cc:164
↓ 1 callers
Function
operator+
! @brief add to iterator @pre The iterator is initialized; i.e. `m_object != nullptr`. */
include/nlohmann/json.hpp:13408
↓ 1 callers
Method
operator+
add to iterator
include/nlohmann/json.hpp:13633
↓ 1 callers
Function
operator+=
@brief add an object to an array @sa https://json.nlohmann.me/api/basic_json/operator+=/
include/nlohmann/json.hpp:22283
↓ 1 callers
Function
operator-
! @brief subtract from iterator @pre The iterator is initialized; i.e. `m_object != nullptr`. */
include/nlohmann/json.hpp:13430
↓ 1 callers
Function
operator<
include/nlohmann/json.hpp:2886
↓ 1 callers
Method
operator==
include/nlohmann/json.hpp:12691
↓ 1 callers
Function
popen_with
(inter_threads, intra_threads)
tools/tune_inter_intra.py:30
↓ 1 callers
Method
post
include/ctranslate2/replica_pool.h:61
↓ 1 callers
Method
post_examples
include/ctranslate2/replica_pool.h:157
↓ 1 callers
Method
process_linear_weights
This method runs some precomputations on linear weights when possible.
src/models/model.cc:389
↓ 1 callers
Method
producer
(self)
python/ctranslate2/extensions.py:442
↓ 1 callers
Function
raise_unsupported
(reasons)
python/ctranslate2/converters/utils.py:107
↓ 1 callers
Function
register_encoder
python/cpp/encoder.cc:48
↓ 1 callers
Function
register_extensions
Registers additional attributes to compiled modules.
python/ctranslate2/extensions.py:19
↓ 1 callers
Function
register_generation_result
python/cpp/generation_result.cc:10
↓ 1 callers
Function
register_generator
python/cpp/generator.cc:125
↓ 1 callers
Function
register_logging
python/cpp/logging.cc:8
↓ 1 callers
Function
register_mpi
python/cpp/mpi.cc:10
↓ 1 callers
Function
register_scoring_result
python/cpp/scoring_result.cc:10
↓ 1 callers
Function
register_storage_view
python/cpp/storage_view.cc:99
↓ 1 callers
Function
register_translation_result
python/cpp/translation_result.cc:10
↓ 1 callers
Function
register_translation_stats
python/cpp/execution_stats.cc:8
↓ 1 callers
Function
register_translator
python/cpp/translator.cc:274
↓ 1 callers
Method
register_variable
src/models/model.cc:273
↓ 1 callers
Method
register_vocabulary_mapping
Registers a vocabulary mapping file. Arguments: path: Path to the vocabulary mapping file.
python/ctranslate2/specs/model_spec.py:504
↓ 1 callers
Function
register_wav2vec2
python/cpp/wav2vec2.cc:22
↓ 1 callers
Function
register_wav2vec2bert
python/cpp/wav2vec2bert.cc:22
↓ 1 callers
Function
register_whisper
python/cpp/whisper.cc:117
↓ 1 callers
Function
relu_
include/ctranslate2/ops/flash-attention/utils.h:241
↓ 1 callers
Function
remove_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 callers
Function
replace_unknown_tokens
src/models/sequence_to_sequence.cc:288
↓ 1 callers
Method
requested_compute_type
include/ctranslate2/models/model.h:75
↓ 1 callers
Function
resolve_compute_type
src/types.cc:156
↓ 1 callers
Function
resolve_cuda_allocator
src/cuda/allocator.cc:144
↓ 1 callers
Function
round
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 callers
Method
round_before_cast_in_quantization
include/ctranslate2/models/model.h:87
↓ 1 callers
Method
save_as_json
Saves the configuration as a JSON file.
python/ctranslate2/specs/model_spec.py:311
↓ 1 callers
Function
sax_parse
include/nlohmann/json.hpp:23253
↓ 1 callers
Method
score_file
python/cpp/translator.cc:225
↓ 1 callers
Method
score_raw_text_file
include/ctranslate2/translator.h:231
↓ 1 callers
Method
set_alignment_heads
src/layers/transformer.cc:565
← previous
next →
701–800 of 2,508, ranked by callers