Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

tests.system.vertexai.test_tokenization.TestTokenization: many tests failed

Open
#6,627 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
python

Research direction

Start with tests.system.vertexai.test_tokenization.TestTokenization and reproduce the listed failures at commit ac5a5e4dd07890d07a553218d42040a6136fbb41. Review the failed tokenization cases for gemini-1.5-pro-002, including system instructions, function calls, function responses, and tools. Done means this package has no failures and at least one passing test.

Written by the indexing model from the issue text.

Description

api: vertex-ai flakybot: issue priority: p1 type: bug

Many tests failed at the same time in this package.

  • I will close this issue when there are no more failures in this package and
    there is at least one pass.
  • No new issues will be filed for this package until this issue is closed.
  • If there are already issues for individual test cases, I will close them when
    the corresponding test passes. You can close them earlier, if you prefer, and
    I won't reopen them while this issue is still open.

Here are the tests that failed:

  • test_count_tokens_local[_get_tokenizer_for_model_preview-gemini-1.5-pro-002-udhr-udhr-PROD_ENDPOINT] (#4624)
  • test_count_tokens_local[get_tokenizer_for_model-gemini-1.5-pro-002-udhr-udhr-PROD_ENDPOINT]
  • test_compute_tokens[_get_tokenizer_for_model_preview-gemini-1.5-pro-002-udhr-udhr-PROD_ENDPOINT]
  • test_compute_tokens[get_tokenizer_for_model-gemini-1.5-pro-002-udhr-udhr-PROD_ENDPOINT] (#4625)
  • test_count_tokens_system_instruction[gemini-1.5-pro-002-PROD_ENDPOINT]
  • test_count_tokens_system_instruction_is_function_call[gemini-1.5-pro-002-PROD_ENDPOINT]
  • test_count_tokens_system_instruction_is_function_response[gemini-1.5-pro-002-PROD_ENDPOINT]
  • test_count_tokens_tool_is_function_declaration[gemini-1.5-pro-002-PROD_ENDPOINT]
  • test_count_tokens_content_is_function_call[gemini-1.5-pro-002-PROD_ENDPOINT]
  • test_count_tokens_content_is_function_response[gemini-1.5-pro-002-PROD_ENDPOINT]

commit: ac5a5e4dd07890d07a553218d42040a6136fbb41
buildURL: Build Status, Sponge
status: failed

Dominant language
Python
Stars
907
Forks
467
Avg merge
1d 8h
Merged PRs (30d)
40

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/python-aiplatform

All issues in googleapis/python-aiplatform

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.