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
__init__
Initializes the configuration for language models. Args: unk_token: The unknown token. bos_token: The start of sentence t
python/ctranslate2/specs/model_spec.py:555
Method
__init__
Initializes a language model specification.
python/ctranslate2/specs/model_spec.py:581
Method
__init__
(self, array)
python/ctranslate2/specs/model_spec.py:675
Method
__init__
(self, tensor)
python/ctranslate2/specs/model_spec.py:721
Method
__init__
(self, rms_norm=False)
python/ctranslate2/specs/common_spec.py:36
Method
__init__
(self)
python/ctranslate2/specs/common_spec.py:45
Method
__init__
(self)
python/ctranslate2/specs/common_spec.py:56
Method
__init__
(self)
python/ctranslate2/specs/common_spec.py:63
Method
__init__
(self)
python/ctranslate2/specs/wav2vec2bert_spec.py:9
Method
__init__
( self, num_hidden_layers, num_adapter_layers, vocab_size, return_hidd
python/ctranslate2/specs/wav2vec2bert_spec.py:14
Method
__init__
(self, glu=False, rms_norm=False)
python/ctranslate2/specs/wav2vec2bert_spec.py:45
Method
__init__
(self)
python/ctranslate2/specs/wav2vec2bert_spec.py:76
Method
__init__
(self, num_hidden_layers, num_adapter_layers, return_hidden)
python/ctranslate2/specs/wav2vec2bert_spec.py:91
Method
__setattr__
(self, key, value)
python/ctranslate2/specs/model_spec.py:92
Function
_callback
(step_result)
python/ctranslate2/extensions.py:481
Function
_catch_exception
()
python/ctranslate2/extensions.py:497
Method
_check
(spec, name, value)
python/ctranslate2/specs/model_spec.py:109
Method
_equal
(self, other)
python/ctranslate2/specs/model_spec.py:707
Method
_equal
(self, other)
python/ctranslate2/specs/model_spec.py:764
Function
_feature_tokenize
()
tools/benchmark/opennmt_ende_wmt14/opennmt_py/convertv2_v3.py:15
Method
_get_features
(audio)
python/tests/test_transformers.py:811
Method
_load
(self)
python/ctranslate2/converters/marian.py:35
Method
_load
(self)
python/ctranslate2/converters/fairseq.py:141
Method
_load
(self)
python/ctranslate2/converters/opennmt_tf.py:80
Method
_load
(self)
python/ctranslate2/converters/openai_gpt2.py:20
Method
_load
(self)
python/ctranslate2/converters/transformers.py:106
Method
_load
(self)
python/ctranslate2/converters/opennmt_py.py:177
Method
_load
(self)
python/ctranslate2/converters/eole_ct2.py:162
Method
_register_var
(spec, name, value)
python/ctranslate2/specs/model_spec.py:159
Method
_to
(self, dtype: str)
python/ctranslate2/specs/model_spec.py:695
Method
_to
(self, dtype: str)
python/ctranslate2/specs/model_spec.py:759
Method
_write_string
(string)
python/ctranslate2/specs/model_spec.py:394
Method
abs
src/cpu/vec.h:71
Method
abs
src/cpu/vec_avx512.h:74
Method
abs
src/cpu/vec_neon.h:90
Method
abs
src/cpu/vec_avx.h:115
Function
abs_diff
tests/benchmark_utils.h:48
Function
accept
include/nlohmann/json.hpp:23226
Function
acos
Arc cosine function. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::acos](https://en.cppreference.com
include/half_float/half.hpp:3683
Function
acosh
Hyperbolic area cosine. This function is exact to rounding for all rounding modes. See also:** Documentation for [std::acosh](https://en.cppreference
include/half_float/half.hpp:3908
Method
add
src/cpu/vec_avx512.h:118
Method
add
src/cpu/primitives.cc:128
Method
add
src/cpu/vec_neon.h:134
Method
add
src/cpu/vec_avx.h:160
Method
add
include/ctranslate2/decoding_utils.h:41
Method
add_batch_broadcast
src/cpu/primitives.cc:150
Method
add_batch_broadcast
include/ctranslate2/primitives.h:64
Method
add_block_broadcast
src/cpu/primitives.cc:177
Method
add_block_broadcast
include/ctranslate2/primitives.h:80
Method
add_depth_broadcast
src/cpu/primitives.cc:163
Method
add_depth_broadcast
include/ctranslate2/primitives.h:72
Method
add_gumbel_noise
src/ops/gumbel_max_cpu.cc:13
Method
add_token
src/vocabulary.cc:51
Method
align
src/models/whisper.cc:424
Method
allocate
src/cpu/allocator.cc:23
Method
allocate
src/cuda/allocator.cc:61
Method
allocate
src/cuda/allocator.cc:81
Method
allocate
include/ctranslate2/allocator.h:15
Method
allow_padding_removal
include/ctranslate2/padder.h:12
Method
apply
src/models/whisper.cc:764
Method
apply_alibi
include/ctranslate2/ops/flash-attention/alibi.h:30
Function
apply_epilogue
src/cuda/helpers.h:495
Method
apply_first
include/ctranslate2/decoding_utils.h:78
Method
apply_k_norm
src/layers/attention.cc:345
Function
apply_mask
include/ctranslate2/ops/flash-attention/mask.h:14
Method
apply_mask
include/ctranslate2/ops/flash-attention/mask.h:129
Function
apply_mask_causal
include/ctranslate2/ops/flash-attention/mask.h:75
Function
apply_mask_causal_w_idx
include/ctranslate2/ops/flash-attention/mask.h:84
Function
apply_mask_local
include/ctranslate2/ops/flash-attention/mask.h:38
Method
apply_qk_norm
src/layers/attention.cc:353
Method
apply_v_norm
src/layers/attention.cc:363
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:203
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:292
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:424
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:480
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:514
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:532
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:545
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:616
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:667
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:708
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:765
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:855
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:935
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:1038
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:1117
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:1234
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:1359
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:1366
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:1444
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:1500
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:1596
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:1700
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:1850
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:2069
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:2380
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:2516
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:2657
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:2808
Method
architecture_name
(self)
python/ctranslate2/converters/transformers.py:2860
← previous
next →
1,101–1,200 of 2,508, ranked by callers