Skip to content

Commit

Permalink
Research folder (huggingface#1553)
Browse files Browse the repository at this point in the history
* Research folder

* Update examples/research_projects/README.md

* up
  • Loading branch information
patrickvonplaten authored Dec 5, 2022
1 parent 7b84d51 commit ddf18c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/versatile_diffusion/modeling_text_unet.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def set_attention_slice(self, slice_size):
in several steps. This is useful to save some memory in exchange for a small speed decrease.
Args:
slice_size (`str` or `int`, *optional*, defaults to `"auto"`):
slice_size (`str` or `int` or `list(int)`, *optional*, defaults to `"auto"`):
When `"auto"`, halves the input to the attention heads, so attention will be computed in two steps. If
`"max"`, maxium amount of memory will be saved by running only one slice at a time. If a number is
provided, uses as many slices as `attention_head_dim // slice_size`. In this case, `attention_head_dim`
Expand Down

0 comments on commit ddf18c6

Please sign in to comment.