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
Method
ScopedMPISetter
src/devices.cc:141
Method
SequenceEncoderReplica
include/ctranslate2/models/language_model.h:116
Method
SequenceGeneratorReplica
include/ctranslate2/models/language_model.h:35
Method
SequenceToSequenceReplica
include/ctranslate2/models/sequence_to_sequence.h:47
Method
SinusoidalPositionEncoder
src/layers/common.cc:231
Method
Slide
src/ops/slide.cc:10
Method
SoftMax
src/ops/softmax.cc:12
Method
Split
src/ops/split.cc:10
Method
Squeeze
include/ctranslate2/ops/squeeze.h:12
Method
StorageView
src/storage_view.cc:11
Method
Sum
src/ops/sum.cc:7
Method
SuppressSequences
src/decoding_utils.cc:108
Method
SuppressTokens
src/decoding_utils.cc:156
Method
SuppressTokensBegin
src/decoding_utils.cc:172
Function
TEST
tests/model_test.cc:7
Function
TEST
tests/storage_view_test.cc:4
Function
TEST
Merged self+cross attention (T5Gemma2 style): self-attention layer also projects encoder memory through a separate `memory_kv` linear and concatenates
tests/attention_test.cc:129
Function
TEST
tests/batching_test.cc:6
Function
TEST
tests/decoding_test.cc:5
Function
TEST
tests/layers_test.cc:8
Function
TEST
tests/ops_test.cc:6
Function
TEST
tests/translator_test.cc:381
Function
TEST_F
MQA: All heads share same K/V
tests/attention_test.cc:57
Function
TEST_P
tests/storage_view_test.cc:67
Function
TEST_P
tests/primitives_test.cc:8
Function
TEST_P
tests/layers_test.cc:34
Function
TEST_P
tests/ops_test.cc:128
Function
TEST_P
tests/translator_test.cc:53
Function
TestMinMax
tests/ops_test.cc:1126
Method
TextLineReader
include/ctranslate2/batch_reader.h:85
Method
ThreadPool
src/thread_pool.cc:127
Method
Tile
src/ops/tile.cc:8
Method
TopK
src/ops/topk.cc:8
Method
TopPMask
src/ops/topp_mask.cc:10
Method
TransformerDecoder
src/layers/transformer.cc:487
Method
TransformerDecoderLayer
src/layers/transformer.cc:150
Method
TransformerEncoder
src/layers/transformer.cc:405
Method
TransformerEncoderLayer
src/layers/transformer.cc:54
Method
TransformerModel
src/models/transformer.cc:36
Method
TranslationResult
include/ctranslate2/translation.h:94
Method
Transpose
src/ops/transpose.cc:8
Method
Transpose
include/ctranslate2/ops/transpose.h:10
Method
Unsqueeze
include/ctranslate2/ops/unsqueeze.h:12
Method
UseTrueFp16GemmInScope
src/cuda/utils.h:120
Method
VectorReader
src/batch_reader.cc:105
Method
Vocabulary
src/vocabulary.cc:36
Method
VocabularyMap
src/vocabulary_map.cc:7
Method
Wav2Vec2BertEncoder
src/layers/wav2vec2bert.cc:166
Method
Wav2Vec2BertReplica
src/models/wav2vec2bert.cc:60
Method
Wav2Vec2Encoder
src/layers/wav2vec2.cc:48
Method
Wav2Vec2LayerNormConvLayer
src/layers/wav2vec2.cc:7
Method
Wav2Vec2PosConvLayer
src/layers/wav2vec2.cc:30
Method
Wav2Vec2Replica
src/models/wav2vec2.cc:60
Method
WhisperEncoder
src/layers/whisper.cc:8
Method
WhisperReplica
src/models/whisper.cc:59
Method
__aiter__
(self)
python/ctranslate2/extensions.py:454
Method
__anext__
(self)
python/ctranslate2/extensions.py:458
Method
__call__
(self, assert_condition, error_message)
python/ctranslate2/converters/utils.py:121
Method
__call__
(self, model)
python/ctranslate2/converters/opennmt_tf.py:92
Method
__call__
(self, model)
python/ctranslate2/converters/opennmt_tf.py:323
Method
__call__
(self, model, tokenizer)
python/ctranslate2/converters/transformers.py:210
Method
__call__
(self, *args, **kwargs)
python/ctranslate2/specs/model_spec.py:85
Method
__init__
(self, rel_path, runs)
tools/benchmark/benchmark_all.py:33
Method
__init__
(self)
tools/benchmark/opennmt_ende_wmt14/opennmt_py/convertv2_v3.py:20
Method
__init__
(self)
tools/benchmark/opennmt_ende_wmt14/opennmt_py/convertv2_v3.py:25
Method
__init__
(self)
tools/benchmark/opennmt_ende_wmt14/opennmt_py/convertv2_v3.py:30
Method
__init__
(self)
python/tests/test_spec.py:14
Method
__init__
(self)
python/tests/test_spec.py:292
Method
__init__
(self, process_func, *args, **kwargs)
python/ctranslate2/extensions.py:434
Method
__init__
Initializes the OPUS-MT converter. Arguments: model_dir: Path the OPUS-MT model directory.
python/ctranslate2/converters/opus_mt.py:12
Method
__init__
Initializes the Marian converter. Arguments: model_path: Path to the Marian model (.npz file). vocab_paths: Paths to the
python/ctranslate2/converters/marian.py:25
Method
__init__
(self)
python/ctranslate2/converters/utils.py:118
Method
__init__
Initializes the Fairseq converter. Arguments: model_path: Path to the Fairseq PyTorch model (.pt file). data_dir: Path to
python/ctranslate2/converters/fairseq.py:107
Method
__init__
Initializes the converter. Arguments: model: An initialized and fully-built ``opennmt.models.Model`` instance.
python/ctranslate2/converters/opennmt_tf.py:72
Method
__init__
Initializes the OpenAI GPT-2 converter. Arguments: model_dir: Path to the OpenAI GPT-2 model directory.
python/ctranslate2/converters/openai_gpt2.py:12
Method
__init__
Initializes the converter. Arguments: model_name_or_path: Name of the pretrained model to download, or path to the dire
python/ctranslate2/converters/transformers.py:70
Method
__init__
Initializes the OpenNMT-py converter. Arguments: model_path: Path to the OpenNMT-py PyTorch model (.pt file). unsafe_dese
python/ctranslate2/converters/opennmt_py.py:166
Method
__init__
Initializes the OpenNMT-py converter. Arguments: model_path: Path to the OpenNMT-py PyTorch model (.pt file).
python/ctranslate2/converters/eole_ct2.py:154
Method
__init__
Initializes a Transformer encoder specification. Args: num_layers: Number of layers. num_heads: Number of attention heads
python/ctranslate2/specs/transformer_spec.py:11
Method
__init__
Initializes a Transformer decoder specification. Args: num_layers: Number of layers. num_heads: Number of attention heads
python/ctranslate2/specs/transformer_spec.py:118
Method
__init__
( self, relative_position=False, relative_attention_bias=False, ffn_glu=False,
python/ctranslate2/specs/transformer_spec.py:296
Method
__init__
( self, with_encoder_attention=True, relative_position=False, relative_attenti
python/ctranslate2/specs/transformer_spec.py:347
Method
__init__
(self)
python/ctranslate2/specs/transformer_spec.py:453
Method
__init__
Initializes the configuration for Transformer models. Args: layer_norm_epsilon: The layer norm epsilon value. **kwargs: A
python/ctranslate2/specs/transformer_spec.py:460
Method
__init__
Initializes a Transformer model specification. Args: encoder: The encoder specification. decoder: The decoder specificati
python/ctranslate2/specs/transformer_spec.py:477
Method
__init__
Initializes the configuration for Transformer decoder models. Args: layer_norm_epsilon: The layer norm epsilon value. **k
python/ctranslate2/specs/transformer_spec.py:601
Method
__init__
Initializes a Transformer decoder model specification. Args: decoder: The decoder specification.
python/ctranslate2/specs/transformer_spec.py:614
Method
__init__
Initializes the configuration for Transformer encoder models. Args: layer_norm_epsilon: The layer norm epsilon value. **k
python/ctranslate2/specs/transformer_spec.py:761
Method
__init__
Initializes a Transformer encoder model specification. Args: encoder: The encoder specification. pooling_layer: Add the p
python/ctranslate2/specs/transformer_spec.py:774
Method
__init__
(self)
python/ctranslate2/specs/wav2vec2_spec.py:11
Method
__init__
( self, feat_layers, num_layers, num_heads, vocab_size, return
python/ctranslate2/specs/wav2vec2_spec.py:16
Method
__init__
(self)
python/ctranslate2/specs/wav2vec2_spec.py:49
Method
__init__
(self)
python/ctranslate2/specs/wav2vec2_spec.py:55
Method
__init__
(self, feat_layers, num_layers, num_heads, return_hidden)
python/ctranslate2/specs/wav2vec2_spec.py:60
Method
__init__
( self, self_attention=False, relative_position=False, relative_asymmetric_pos
python/ctranslate2/specs/attention_spec.py:18
Method
__init__
( self, suppress_ids: Optional[List[int]] = None, suppress_ids_begin: Optional[List[in
python/ctranslate2/specs/whisper_spec.py:11
Method
__init__
(self, num_layers, num_heads)
python/ctranslate2/specs/whisper_spec.py:69
Method
__init__
Initializes the configuration with a set of parameters.
python/ctranslate2/specs/model_spec.py:295
Method
__init__
Initializes the configuration for sequence-to-sequence models. Args: unk_token: The unknown token. bos_token: The start o
python/ctranslate2/specs/model_spec.py:429
Method
__init__
Initializes a sequence to sequence model specification.
python/ctranslate2/specs/model_spec.py:467
← previous
next →
1,001–1,100 of 2,508, ranked by callers