Added timesformer configuration
Author: AdiaWu
Pull request: yes

Co-authored-by: JuheonChu <chuj@dickinson.edu>

# What does this PR do?

<!--
Congratulations! You've made it this far! You're not quite done yet though.

Once merged, your PR is going to appear in the release notes with the title you set, so make sure it's a great title that fully reflects the extent of your awesome contribution.

Then, please replace this with a description of the change and which issue is fixed (if applicable). Please also include relevant motivation and context. List any dependencies (if any) that are required for this change.

Once you're done, someone will review your PR shortly (see the section "Who can review?" below to tag some potential reviewers). They may suggest changes to make the code even better. If no one reviewed your PR after a week has passed, don't hesitate to post a new comment @-mentioning the same persons---sometimes notifications get lost.
-->

<!-- Remove if not applicable -->

Fixes # 19487 (issue)


## Before submitting
- [x] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#start-contributing-pull-requests),
      Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?


## Who can review?
@ydshieh 
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

<!-- Your PR will be replied to more quickly if you can figure out the right person to tag with @

 If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
 Please tag fewer than 3 people.

Models:

- text models: @ArthurZucker and @younesbelkada
- vision models: @amyeroberts and @NielsRogge
- speech models: @sanchit-gandhi
- graph models: @clefourrier

Library:

- flax: @sanchit-gandhi
- generate: @gante
- pipelines: @Narsil
- tensorflow: @gante and @Rocketknight1
- tokenizers: @ArthurZucker
- trainer: @sgugger

Integrations:

- deepspeed: HF Trainer: @stas00, Accelerate: @pacman100
- ray/raytune: @richardliaw, @amogkam

Documentation: @sgugger, @stevhliu and @MKhalusova

HF projects:

- accelerate: [different repo](https://github.com/huggingface/accelerate)
- datasets: [different repo](https://github.com/huggingface/datasets)
- diffusers: [different repo](https://github.com/huggingface/diffusers)
- rust tokenizers: [different repo](https://github.com/huggingface/tokenizers)

Maintained examples (not research project or legacy):

- Flax: @sanchit-gandhi
- PyTorch: @sgugger
- TensorFlow: @Rocketknight1

 -->


Comments:
_The documentation is not available anymore as the PR was closed or merged._

Hi @AdiaWu and @JuheonChu, thank you for the contribution 🚀 The doctest is confirmed to pass with this change, but there are 2 lines that should not be deleted in this PR. Once that part is reverted, we are ready to merge 💯 

Hi @ydshieh Thank you very much for your advice, we will work on it now! 

Hi, @AdiaWu, 

[Update]

You created a new file `src/transformers/utils/documentation_tests.txt`. This should be removed, and we only need to add 1 line in  the existing file `utils/documentation_tests.txt`.

~~I am not sure if something changed since yesterday, but currently, the file `documentation_tests.txt` is completely  modified, in particular in [this commit](https://github.com/AdiaWu/transformers/commit/657de28e023ff305fde3356e187b96c29bca1f07)~~

~~Why that file is re-created in that commit? Before we can merge this PR, you will have to make that file clean - there should be only 1 line change instead of all file being changed.~~





I am sorry for the trouble. However, I only added line 172 and line 173 as you instructed yesterday. May I ask you what is the one line that you want me to revise? We will try to work on it again. 

Dear @ydshieh 
and from this site: https://github.com/huggingface/transformers/pull/21446/commits/82d5a6216e3c4596f2213dbee440f12bdaa35fcb. You can check that I only added two lines to the document... Not sure if somewhere went wrong.. 
Agian, sorry for the trouble. 

One commit before, there is unusual changes:

https://github.com/huggingface/transformers/pull/21446/commits/657de28e023ff305fde3356e187b96c29bca1f07

@ydshieh Thank you! We will remove the file right away.

@ydshieh Hello, I just wanted to double check. So, what @JuheonChu and I should do is deleting "`src/transformers/utils/documentation_tests.txt`" file. Are we understanding correctly?

> @ydshieh Hello, I just wanted to double check. So, what @JuheonChu and I should do is deleting "`src/transformers/utils/documentation_tests.txt`" file. Are we understanding correctly?

Yes

Hi @AdiaWu If you check on the changed file page

https://github.com/huggingface/transformers/pull/21446/files

It shows the file `utils/documentation_tests.txt` is not there (or points to `src/transformers/utils/documentation_tests.txt`.

I suggest you verify the file locally, make sure `utils/documentation_tests.txt` exist, not a symbolic link to other files, and with the expected one-line change you want to add for this PR 🙏.

@ydshieh Is the file `utils/documentation_tests.txt` already in our commits? 

Dear @ydshieh , 
Since the file "utils/documentation_tests.txt" is missing. @JuheonChu and I just updated the "utils/documentation_tests.txt". There should be no problem with the file now. Please check it whenever you are available and see if there are still some errors this time. 

Hi @AdiaWu 

- The file `src/transformers/utils/documentation_tests.txt` should not be added.
- The file `utils/documentation_tests.txt` should not be deleted.

It seems at some point of your commits, you have done something to these  2 files.

What needs to be done is:

- remove the newly added file `src/transformers/utils/documentation_tests.txt`
- make sure  `utils/documentation_tests.txt` exist, and is not a symbolic link to any other file
- make sure `utils/documentation_tests.txt` is updated with one line `src/transformers/models/timesformer/configuration_timesformer.py`

I hope this is clear and we can merge the PR once everything is fine, thank you.
I can help to resolve this issue if necessary, please let me know :-) 

Dear @ydshieh , I am sorry for misunderstanding your instructions, we have now deleted the "src/transformers/utils/documentation_tests.txt" file, and the "utils/documentation_tests.txt" is currently in the path with only one line added. I hope this time this PR should be all good and ready to be merged. Thank you very much! 

> Dear @ydshieh , I am sorry for misunderstanding your instructions, we have now deleted the "src/transformers/utils/documentation_tests.txt" file, and the "utils/documentation_tests.txt" is currently in the path with only one line added. I hope this time this PR should be all good and ready to be merged. Thank you very much!

@ydshieh Thank you for your guidance, and do you mind if you can verify it?

No worry🤗, and yes it is good now🚀 Thank you so much for making it and the contribution ❤️

> No worry🤗, and yes it is good now🚀 Thank you so much for making it and the contribution ❤️

Thank you for your patience!