transformers/docs/source/en/main_classes
Joao Gante 4bc723f87d
Generate: use GenerationConfig as the basis for .generate() parametrization (#20388)
* generate from config mvp

* fix failing tests

* max_time test

* Load default gen config at model load time; Update docs

* further documentation; add tests

* adapt rag to the new structure

* handle models not instantiated with from_pretained (like in tests)

* better default generation config

* add can_generate fn

* handle legacy use case of ad hoc model config changes

* initialize gen config from config in individual methods, if gen config is none

* fix _get_decoder_start_token_id when called outside GenerationMixin

* correct model config load order (set attr > model config > decoder config)

* update rag to match latest changes

* Apply suggestions from code review

Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* load gen config from model config in model.from_pretrained

* fix can_generate fn

* handle generate calls without a previous from_pretrained (e.g. tests)

* add legacy behavior (and a warning)

* lower logger severity

Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2022-12-15 18:27:20 +00:00
..
callback.mdx New logging support to "Trainer" Class (ClearML Logger) (#20184) 2022-11-15 10:08:59 -05:00
configuration.mdx Enable doc in Spanish (#16518) 2022-04-04 10:25:46 -04:00
data_collator.mdx Enable doc in Spanish (#16518) 2022-04-04 10:25:46 -04:00
deepspeed.mdx docs: Resolve many typos in the English docs (#20088) 2022-11-07 09:19:04 -05:00
feature_extractor.mdx Update feature extractor docs (#18324) 2022-07-27 15:32:57 -05:00
image_processor.mdx AutoImageProcessor (#20111) 2022-11-08 19:54:41 +00:00
keras_callbacks.mdx Enable doc in Spanish (#16518) 2022-04-04 10:25:46 -04:00
logging.mdx logging documentation update (#17174) 2022-05-16 16:47:28 -04:00
model.mdx Generate: move generation_*.py src files into generation/*.py (#20096) 2022-11-09 15:34:08 +00:00
onnx.mdx Enable doc in Spanish (#16518) 2022-04-04 10:25:46 -04:00
optimizer_schedules.mdx Enable doc in Spanish (#16518) 2022-04-04 10:25:46 -04:00
output.mdx Minor typo in prose of model outputs documentation. (#18848) 2022-09-01 12:05:40 +02:00
pipelines.mdx Add video classification pipeline (#20151) 2022-12-08 16:22:43 -05:00
processors.mdx Update doc examples feature extractor -> image processor (#20501) 2022-11-30 14:50:55 +00:00
text_generation.mdx Generate: use GenerationConfig as the basis for .generate() parametrization (#20388) 2022-12-15 18:27:20 +00:00
tokenizer.mdx documentation: some minor clean up (#16850) 2022-04-26 16:56:08 -04:00
trainer.mdx docs: Resolve many typos in the English docs (#20088) 2022-11-07 09:19:04 -05:00