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
↓ 2 callers
Method
set_embeddings
(self, spec, module)
python/ctranslate2/converters/opennmt_tf.py:312
↓ 2 callers
Function
set_ffn
(spec, weights, scope)
python/ctranslate2/converters/marian.py:241
↓ 2 callers
Function
set_ffn
(spec, module)
python/ctranslate2/converters/fairseq.py:260
↓ 2 callers
Function
set_ffn
(spec, variables, scope)
python/ctranslate2/converters/opennmt_py.py:294
↓ 2 callers
Function
set_ffn
(spec, variables, scope)
python/ctranslate2/converters/eole_ct2.py:282
↓ 2 callers
Method
set_ffn
(self, spec, module)
python/ctranslate2/converters/opennmt_tf.py:264
↓ 2 callers
Function
set_input_layers
(spec, module)
python/ctranslate2/converters/fairseq.py:236
↓ 2 callers
Function
set_input_layers
(spec, variables, scope)
python/ctranslate2/converters/opennmt_py.py:246
↓ 2 callers
Function
set_input_layers
(spec, variables, scope)
python/ctranslate2/converters/eole_ct2.py:228
↓ 2 callers
Function
set_layer_norm_auto
(spec, weights, scope)
python/ctranslate2/converters/marian.py:247
↓ 2 callers
Method
set_layer_norm_from_wrapper
(self, spec, module)
python/ctranslate2/converters/opennmt_tf.py:291
↓ 2 callers
Function
set_num_threads
src/utils.cc:85
↓ 2 callers
Method
set_position_encodings
(self, spec, module)
python/ctranslate2/converters/opennmt_tf.py:315
↓ 2 callers
Method
set_stack
(self, spec, module, is_decoder=False)
python/ctranslate2/converters/transformers.py:1281
↓ 2 callers
Function
set_transformer_decoder
(spec, module, with_encoder_attention=True)
python/ctranslate2/converters/fairseq.py:217
↓ 2 callers
Function
set_transformer_decoder
(spec, variables, with_encoder_attention=True)
python/ctranslate2/converters/opennmt_py.py:228
↓ 2 callers
Function
set_transformer_decoder
(spec, variables, with_encoder_attention=True)
python/ctranslate2/converters/eole_ct2.py:214
↓ 2 callers
Method
set_transformer_decoder
(self, spec, module, inputter)
python/ctranslate2/converters/opennmt_tf.py:235
↓ 2 callers
Function
signbit
Check sign. See also:** Documentation for [std::signbit](https://en.cppreference.com/w/cpp/numeric/math/signbit). \param arg number to check \retval t
include/half_float/half.hpp:4399
↓ 2 callers
Function
skip_whitespace
include/nlohmann/json.hpp:8801
↓ 2 callers
Method
smooth_activation
(self, spec, activation_scales)
python/ctranslate2/converters/transformers.py:561
↓ 2 callers
Function
sort_hypotheses
Sort hypotheses from best to worst score, in the limit of max_hypotheses.
src/decoding.cc:206
↓ 2 callers
Method
start
src/thread_pool.cc:99
↓ 2 callers
Function
starts_with
src/utils.cc:114
↓ 2 callers
Function
string_to_bool
src/utils.cc:24
↓ 2 callers
Function
synchronize_device
src/devices.cc:101
↓ 2 callers
Function
to_spdlog_level
src/logging.cc:12
↓ 2 callers
Method
translate_async
src/buffered_translation_wrapper.cc:29
↓ 2 callers
Method
translate_text_file
src/translator.cc:84
↓ 2 callers
Function
update_sample_with_prefix
src/decoding.cc:21
↓ 2 callers
Method
update_state
src/layers/decoder.cc:33
↓ 2 callers
Method
use_flash_attention
include/ctranslate2/models/model.h:95
↓ 2 callers
Method
write_bson
! @param[in] j JSON value to serialize @pre j.type() == value_t::object */
include/nlohmann/json.hpp:14975
↓ 2 callers
Method
write_cbor
! @param[in] j JSON value to serialize */
include/nlohmann/json.hpp:15004
↓ 2 callers
Method
write_msgpack
! @param[in] j JSON value to serialize */
include/nlohmann/json.hpp:15328
↓ 1 callers
Function
MPI_Allgather
src/cuda/mpi_stub.cc:50
↓ 1 callers
Function
MPI_Bcast
src/cuda/mpi_stub.cc:60
↓ 1 callers
Function
MPI_Comm_rank
src/cuda/mpi_stub.cc:80
↓ 1 callers
Function
MPI_Comm_size
src/cuda/mpi_stub.cc:86
↓ 1 callers
Function
MPI_Finalize
src/cuda/mpi_stub.cc:74
↓ 1 callers
Function
MPI_Init
src/cuda/mpi_stub.cc:68
↓ 1 callers
Method
__init__
(self)
python/tests/test_spec.py:18
↓ 1 callers
Method
__init__
Initializes the model specification. Args: num_encoder_layers: The number of encoder layers. num_encoder_heads: The numbe
python/ctranslate2/specs/whisper_spec.py:29
↓ 1 callers
Method
__init__
(self)
python/ctranslate2/specs/wav2vec2bert_spec.py:53
↓ 1 callers
Method
_alias_variables
Find duplicate variables in spec and create aliases.
python/ctranslate2/specs/model_spec.py:169
↓ 1 callers
Function
_batch_iterator
(iterable, batch_size, batch_type)
python/ctranslate2/extensions.py:557
↓ 1 callers
Function
_benchmark_translation
( image_name, source_file, target_file, environment, num_cpus, use_gpu, )
tools/benchmark/benchmark.py:135
↓ 1 callers
Function
_check_generator_logits
( tmp_dir, model_name, hf_model_class, hf_tokenizer_class, input_text )
python/tests/test_transformers.py:391
↓ 1 callers
Function
_count_tokens
(path)
tools/benchmark/benchmark.py:24
↓ 1 callers
Function
_detokenize
(image_name, input_file, output_file)
tools/benchmark/benchmark.py:83
↓ 1 callers
Function
_dtype_to_type_id
(object_dtype)
python/ctranslate2/specs/model_spec.py:280
↓ 1 callers
Method
_equal
(self, other)
python/ctranslate2/specs/model_spec.py:668
↓ 1 callers
Function
_flatten_vocabularies
(vocabularies)
python/ctranslate2/specs/model_spec.py:417
↓ 1 callers
Function
_get_bleu_score
(hyp_file, ref_file)
tools/benchmark/benchmark.py:18
↓ 1 callers
Method
_get_lang_ids_from_tokenizer
(self, tokenizer)
python/ctranslate2/converters/transformers.py:952
↓ 1 callers
Function
_get_long_description
()
python/setup.py:15
↓ 1 callers
Function
_get_model_config
(model)
python/ctranslate2/converters/marian.py:111
↓ 1 callers
Function
_get_model_spec
(args)
python/ctranslate2/converters/fairseq.py:28
↓ 1 callers
Function
_get_model_spec_lm
Creates a model specification from the model options.
python/ctranslate2/converters/opennmt_py.py:99
↓ 1 callers
Function
_get_model_spec_lm
Creates a model specification from the model config.
python/ctranslate2/converters/eole_ct2.py:92
↓ 1 callers
Function
_get_model_spec_seq2seq
Creates a model specification from the model options.
python/ctranslate2/converters/opennmt_py.py:58
↓ 1 callers
Function
_get_model_spec_seq2seq
Creates a model specification from the model config.
python/ctranslate2/converters/eole_ct2.py:20
↓ 1 callers
Function
_get_project_version
()
python/setup.py:23
↓ 1 callers
Method
_load
(self)
python/ctranslate2/converters/converter.py:108
↓ 1 callers
Function
_make_sinusoidal_position_encodings
(dim, num_positions=2048)
python/ctranslate2/converters/marian.py:285
↓ 1 callers
Function
_maybe_add_library_root
(lib_name)
python/setup.py:31
↓ 1 callers
Function
_monitor_container
(container, poll_interval=1, use_gpu=False)
tools/benchmark/benchmark.py:32
↓ 1 callers
Function
_parent_scope
(scope)
python/ctranslate2/specs/model_spec.py:51
↓ 1 callers
Method
_quantize
Possibly quantizes the variable of the layer.
python/ctranslate2/specs/model_spec.py:191
↓ 1 callers
Method
_remove_pad_weights
(self, spec)
python/ctranslate2/converters/transformers.py:455
↓ 1 callers
Function
_remove_self
(signature)
docs/conf.py:47
↓ 1 callers
Method
_serialize
Serializes the model variables.
python/ctranslate2/specs/model_spec.py:382
↓ 1 callers
Method
_to
(self, dtype: str)
python/ctranslate2/specs/model_spec.py:664
↓ 1 callers
Function
_tokenize
(image_name, input_file, output_file)
tools/benchmark/benchmark.py:79
↓ 1 callers
Method
add
src/batch_reader.cc:123
↓ 1 callers
Method
add_scope_time
src/profiler.cc:68
↓ 1 callers
Method
align
python/cpp/whisper.cc:91
↓ 1 callers
Function
all_beams_diverged_from_prefix
src/decoding.cc:344
↓ 1 callers
Method
allocator
include/ctranslate2/replica_pool.h:334
↓ 1 callers
Function
annotate_classes
(classes)
docs/generate.py:83
↓ 1 callers
Function
append_exponent
include/nlohmann/json.hpp:17711
↓ 1 callers
Method
apply
src/models/whisper.cc:213
↓ 1 callers
Method
as_sequence_encoder
src/models/model.cc:157
↓ 1 callers
Method
as_sequence_generator
src/models/model.cc:153
↓ 1 callers
Function
backtrace
src/dtw.cc:8
↓ 1 callers
Function
benchmark_conv1d
tests/benchmark_ops.cc:114
↓ 1 callers
Function
benchmark_dequantize
tests/benchmark_ops.cc:103
↓ 1 callers
Function
benchmark_gather
tests/benchmark_ops.cc:9
↓ 1 callers
Function
benchmark_gemm
tests/benchmark_ops.cc:86
↓ 1 callers
Function
benchmark_generation
(generator, sp, prompt_tokens, gene
tools/benchmark_tensor_parallel/benchmark.py:61
↓ 1 callers
Function
benchmark_layer_norm
tests/benchmark_ops.cc:35
↓ 1 callers
Function
benchmark_masked_softmax
tests/benchmark_ops.cc:56
↓ 1 callers
Function
benchmark_median_filter
tests/benchmark_ops.cc:123
↓ 1 callers
Function
benchmark_quantize
tests/benchmark_ops.cc:95
↓ 1 callers
Function
benchmark_softmax
tests/benchmark_ops.cc:48
↓ 1 callers
Function
benchmark_split
tests/benchmark_ops.cc:26
↓ 1 callers
Function
benchmark_topk
tests/benchmark_ops.cc:74
↓ 1 callers
Function
benchmark_transpose
tests/benchmark_ops.cc:19
↓ 1 callers
Method
binary_version
include/ctranslate2/models/model.h:53
↓ 1 callers
Function
build_alibi
src/layers/attention_layer.cc:13
← previous
next →
501–600 of 2,508, ranked by callers