[docstring] Fix docstring for `CodeLlamaTokenizerFast`
Author: Bojun-Feng
Pull request: yes

# 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 #26638


## 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?

## Who can review?

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
- speech models: @sanchit-gandhi
- graph models: @clefourrier

Library:

- flax: @sanchit-gandhi
- generate: @gante
- pipelines: @Narsil
- tensorflow: @gante and @Rocketknight1
- tokenizers: @ArthurZucker
- trainer: @muellerzr and @pacman100

Integrations:

- deepspeed: HF Trainer/Accelerate: @pacman100
- ray/raytune: @richardliaw, @amogkam
- Big Model Inference: @SunMarc
- quantization (bitsandbytes, autogpt): @SunMarc and @younesbelkada

Documentation: @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: See Models above and tag the person corresponding to the modality of the example.
- TensorFlow: @Rocketknight1

 -->


Comments:
**Issues Encountered:**

**System Configuration:**
- **Machine:** Mac with M1 Chip
- **Environment:** New Conda environment using Python `3.9.18`

**Installation Issue:**
- Command Executed: `pip install -e ".[dev]"`
- Error Encountered:
    ```
    INFO: pip is looking at multiple versions of transformers[dev] to determine which version is compatible with other requirements. This could take a while.
    ERROR: Could not find a version that satisfies the requirement tensorflow-text<2.15; extra == "dev" (from transformers[dev]) (from versions: none)
    ERROR: No matching distribution found for tensorflow-text<2.15; extra == "dev"
    ```
- Solution: Replaced `".[dev]"` with `".[quality]"` and the module was successfully installed.

**Execution Issue:**
- Command Executed: `python3 utils/check_docstrings.py --fix_and_overwrite`
- Error Encountered:
    ```
    Traceback (most recent call last):
      File ".../transformers/src/transformers/utils/import_utils.py", line 1282, in _get_module
        return importlib.import_module("." + module_name, self.__name__)
      File ".../python3.9/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
      File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
      File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 850, in exec_module
      File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
      File ".../transformers/src/transformers/models/deta/modeling_deta.py", line 52, in <module>
        from torchvision.ops.boxes import batched_nms
      File ".../site-packages/torchvision/__init__.py", line 6, in <module>
        from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils
      File ".../site-packages/torchvision/datasets/__init__.py", line 1, in <module>
        from ._optical_flow import FlyingChairs, FlyingThings3D, HD1K, KittiFlow, Sintel
      File ".../site-packages/torchvision/datasets/_optical_flow.py", line 10, in <module>
        from PIL import Image
    ModuleNotFoundError: No module named 'PIL'
    ```
- Solution: Used `python` instead of `python3` and the file executed successfully.
- However, only doc strings in `CodeLlamaTokenizerFast` were modified. CI tests failed for `CodeLlamaTokenizer`.

**Next Steps:**
- Add `CodeLlamaTokenizer` back into `OBJECTS_TO_IGNORE`.
- See if doc strings of `CodeLlamaTokenizerFast` are updated correctly and can pass the CI.

Hi @ydshieh,

Doc strings of `CodeLlamaTokenizerFast` seems to be properly updated, and this PR is ready to merge.

However, the above dependency issues were a bit confusing and prevented me from updating the doc strings of `CodeLlamaTokenizer`. Am I setting up the dev environment incorrectly? Any information would be much appreciated!

cc @ydshieh 

Update on issues encountered: `pip install -e ".[dev-torch]"` solved the issue for me.

Regarding environment, I am not using Mac, and it seems tensorflow related stuffs are in the way (`tensorflow-text`).

Do you have `tensorflow` and/or `tensorflow-text` installed? What are their versions?

> Regarding environment, I am not using Mac, and it seems tensorflow related stuffs are in the way (`tensorflow-text`).
> 
> Do you have `tensorflow` and/or `tensorflow-text` installed? What are their versions?

I have `tensorflow` at version `2.14.0`. I do not have `tensorflow-text`.

Maybe you can remove the 3 places of `tensorflow-text` in the file `setup.py` (do not commit) and  try install with `.[dev]` again, and see if this could resolve issue. But we can move on to merge this PR just with `CodeLlamaTokenizerFast`. We can leave `CodeLlamaTokenizer` for another PR.

The docs for this PR live [here](https://moon-ci-docs.huggingface.co/docs/transformers/pr_26666). All of your documentation changes will be reflected on that endpoint.

> Maybe you can remove the 3 places of `tensorflow-text` in the file `setup.py` (do not commit) and try install with `.[dev]` again, and see if this could resolve issue. But we can move on to merge this PR just with `CodeLlamaTokenizerFast`. We can leave `CodeLlamaTokenizer` for another PR.

Let's just merge it. I can create another PR for `CodeLlamaTokenizer`.

Could you resolve the conflicts so that I can approve the pR? 😉 

> Could you resolve the conflicts so that I can approve the pR? 😉

I am a bit unsure what you mean by conflict. I have resolved the conversation, if that is what you meant. Please let me know if you would like me to add back the suffix_first parameter.

@Bojun-Feng 

Check `This branch has conflicts that must be resolved` below. It has conflict to the main branch as the (long) list of `OBJECTS_TO_IGNORE` is updated frequently due to the event.

> @Bojun-Feng
> 
> Check `This branch has conflicts that must be resolved` below. It has conflict to the main branch as the (long) list of `OBJECTS_TO_IGNORE` is updated frequently due to the event.

Conflict resolved, thank you for the clarification!