transformers/docs/source/ja/main_classes/text_generation.md
Rockerz 84724efd10
Translating en/main_classes folder docs to Japanese 🇯🇵 (#26894)
* add

* add

* add

* Add deepspeed.md

* Add

* add

* Update docs/source/ja/main_classes/callback.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/ja/main_classes/output.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/ja/main_classes/pipelines.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/ja/main_classes/processors.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/ja/main_classes/processors.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/ja/main_classes/text_generation.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/ja/main_classes/processors.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update  logging.md

* Update toctree.yml

* Update docs/source/ja/main_classes/deepspeed.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Add suggesitons

* m

* Update docs/source/ja/main_classes/trainer.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update toctree.yml

* Update Quantization.md

* Update docs/source/ja/_toctree.yml

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update toctree.yml

* Update docs/source/en/main_classes/deepspeed.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/en/main_classes/deepspeed.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

---------

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
2023-10-30 09:39:14 -07:00

2.6 KiB

Generation

各フレームワークには、それぞれの GenerationMixin クラスに実装されたテキスト生成のための Generate メソッドがあります。

  • PyTorch [~generation.GenerationMixin.generate] は [~generation.GenerationMixin] に実装されています。
  • TensorFlow [~generation.TFGenerationMixin.generate] は [~generation.TFGenerationMixin] に実装されています。
  • Flax/JAX [~generation.FlaxGenerationMixin.generate] は [~generation.FlaxGenerationMixin] に実装されています。

選択したフレームワークに関係なく、[~generation.GenerationConfig] を使用して生成メソッドをパラメータ化できます。 クラスインスタンス。動作を制御する生成パラメータの完全なリストについては、このクラスを参照してください。 生成方法のこと。

モデルの生成構成を検査する方法、デフォルトとは何か、パラメーターをアドホックに変更する方法を学習するには、 カスタマイズされた生成構成を作成して保存する方法については、「 テキスト生成戦略ガイド。このガイドでは、関連機能の使用方法についても説明しています。 トークンストリーミングのような。

GenerationConfig

autodoc generation.GenerationConfig - from_pretrained - from_model_config - save_pretrained

GenerationMixin

autodoc generation.GenerationMixin - generate - compute_transition_scores - greedy_search - sample - beam_search - beam_sample - contrastive_search - group_beam_search - constrained_beam_search

TFGenerationMixin

autodoc generation.TFGenerationMixin - generate - compute_transition_scores

FlaxGenerationMixin

autodoc generation.FlaxGenerationMixin - generate