Skip to content

Conversation

@yunbow30944
Copy link
Contributor

Description

  • Fix bug that forecast udf cannot be called
  • Fix bug of sundial model

Test

Before

20251110-232034
屏幕截图 2025-11-15 222816

After

屏幕截图 2025-11-17 143001

Copy link
Contributor

@CRZbulabula CRZbulabula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTAL.

elif past_length < token_num:
# TODO: Actually, we need to know the output_token_lens used in the last generation step.
# Sundial will pad the input when it is non-divisible, so we cannot use past_length to slice input_ids
input_ids = input_ids[:, -self.config.output_token_lens[0] :]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change the computation of input_ids here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because Sundial will pad the input when it is non-divisible, so we cannot use past_length to slice input_ids, it will slice more sequence than we expected.

@yunbow30944 yunbow30944 force-pushed the fix_forecast_and_sundial branch from 0dc23cf to b18da36 Compare November 18, 2025 07:35
RkGrit

This comment was marked as resolved.

Copy link
Contributor

@CRZbulabula CRZbulabula left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@CRZbulabula CRZbulabula merged commit 2b47be7 into apache:master Nov 19, 2025
29 checks passed
@yunbow30944 yunbow30944 deleted the fix_forecast_and_sundial branch November 20, 2025 06:47
JackieTien97 pushed a commit that referenced this pull request Nov 26, 2025
alpass163 pushed a commit to alpass163/iotdb that referenced this pull request Nov 28, 2025
CRZbulabula pushed a commit that referenced this pull request Dec 16, 2025
CRZbulabula added a commit that referenced this pull request Dec 16, 2025
* [AINode] Refactor code base

* [AINode] Implement concurrent inference framework (#16311)

(cherry picked from commit 7b9ec7e)

* [AINode] Fix bugs for SHOW LOADED MODELS (#16410)

(cherry picked from commit 40b2b33)

* [AINode] Add a batcher for inference (#16411)

(cherry picked from commit 7734331)

* [AINode][Bug fix] Concurrent inference (#16518)

* trigger CI

* bug fix 4 show loaded models

(cherry picked from commit b4dde12)

* [AINode] Concurrent inference bug fix (#16595)

(cherry picked from commit 46a0c6a)

* [AINode] Adjust the maximum inference input length (#16640)

(cherry picked from commit 2c9064f)

* [AINode] Fix bug of sundial and forecast udf (#16768)

(cherry picked from commit 2b47be7)

* [AINode] Package AINode via PyInstaller (#16707)

(cherry picked from commit 49c625b)

* [AINode] Enable AINode start as background (-d) (#16762)

(cherry picked from commit 1ebb951)

* [AINode] Update AINodeClient for DataNode to borrow (#16647)

(cherry picked from commit d49d7dd)

* [AINode] Fix bug that AINode cannot compile in Windows (#16767)

(cherry picked from commit cd443ba)

* [AINode] Delete poetry.lock for easier maintain different operating systems (#16793)

(cherry picked from commit 50f92e4)

* [AINode] Fix cp errors

---------

Co-authored-by: Leo <[email protected]>
Co-authored-by: jtmer <[email protected]>
Co-authored-by: Zeyu Zhang <[email protected]>
CRZbulabula pushed a commit that referenced this pull request Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants