MCPcopy Create free account

hub / github.com/OpenNMT/CTranslate2 / functions

Functions2,508 in github.com/OpenNMT/CTranslate2

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
Methodabs
src/cpu/vec.h:71
Methodabs
src/cpu/vec_avx512.h:74
Methodabs
src/cpu/vec_neon.h:90
Methodabs
src/cpu/vec_avx.h:115
Functionabs_diff
tests/benchmark_utils.h:48
Functionaccept
include/nlohmann/json.hpp:23226
Functionacos
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
Functionacosh
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
Methodadd
src/cpu/vec_avx512.h:118
Methodadd
src/cpu/primitives.cc:128
Methodadd
src/cpu/vec_neon.h:134
Methodadd
src/cpu/vec_avx.h:160
Methodadd
include/ctranslate2/decoding_utils.h:41
Methodadd_batch_broadcast
src/cpu/primitives.cc:150
Methodadd_batch_broadcast
include/ctranslate2/primitives.h:64
Methodadd_block_broadcast
src/cpu/primitives.cc:177
Methodadd_block_broadcast
include/ctranslate2/primitives.h:80
Methodadd_depth_broadcast
src/cpu/primitives.cc:163
Methodadd_depth_broadcast
include/ctranslate2/primitives.h:72
Methodadd_gumbel_noise
src/ops/gumbel_max_cpu.cc:13
Methodadd_token
src/vocabulary.cc:51
Methodalign
src/models/whisper.cc:424
Methodallocate
src/cpu/allocator.cc:23
Methodallocate
src/cuda/allocator.cc:61
Methodallocate
src/cuda/allocator.cc:81
Methodallocate
include/ctranslate2/allocator.h:15
Methodallow_padding_removal
include/ctranslate2/padder.h:12
Methodapply
src/models/whisper.cc:764
Methodapply_alibi
include/ctranslate2/ops/flash-attention/alibi.h:30
Functionapply_epilogue
src/cuda/helpers.h:495
Methodapply_first
include/ctranslate2/decoding_utils.h:78
Methodapply_k_norm
src/layers/attention.cc:345
Functionapply_mask
include/ctranslate2/ops/flash-attention/mask.h:14
Methodapply_mask
include/ctranslate2/ops/flash-attention/mask.h:129
Functionapply_mask_causal
include/ctranslate2/ops/flash-attention/mask.h:75
Functionapply_mask_causal_w_idx
include/ctranslate2/ops/flash-attention/mask.h:84
Functionapply_mask_local
include/ctranslate2/ops/flash-attention/mask.h:38
Methodapply_qk_norm
src/layers/attention.cc:353
Methodapply_v_norm
src/layers/attention.cc:363
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:203
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:292
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:424
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:480
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:514
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:532
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:545
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:616
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:667
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:708
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:765
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:855
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:935
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:1038
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:1117
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:1234
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:1359
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:1366
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:1444
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:1500
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:1596
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:1700
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:1850
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:2069
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:2380
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:2516
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:2657
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:2808
Methodarchitecture_name
(self)
python/ctranslate2/converters/transformers.py:2860
← previousnext →1,101–1,200 of 2,508, ranked by callers