unsloth/studio/frontend/src
Radouane Elhajali a6fe743ebe
studio: humanize ETA display for long training runs (#4608)
* studio: humanize ETA display for long training runs

When training takes hours or days, the ETA displayed raw minutes
(e.g. '560m 50s'). This changes the format to:
- Under 1 hour: Xm Ys (unchanged)
- 1-24 hours: Xh Ym Zs
- Over 24 hours: Xd Xh Xm

* Fix formatDuration edge cases and consolidate duplicate for PR #4608

- Guard NaN/Infinity inputs with Number.isFinite() (matches formatNumber in same file)
- Add sub-minute branch so 30s displays as "30s" instead of "0m 30s"
- Accept undefined in type signature to match formatNumber pattern
- Remove duplicate formatDuration from history-card-grid.tsx and import the shared one

---------

Co-authored-by: Daniel Han <danielhanchen@gmail.com>
2026-03-26 06:55:54 -07:00
..
app turning data recipes on for mac (#4454) 2026-03-19 11:11:27 +04:00
assets Final cleanup 2026-03-12 18:28:04 +00:00
components fix: normalize search matching for recommended models and LoRA picker (#4615) 2026-03-26 03:40:11 -07:00
config studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
features studio: humanize ETA display for long training runs (#4608) 2026-03-26 06:55:54 -07:00
hooks studio: improve onboarding UX, tooltips, and training defaults (#4355) 2026-03-17 07:46:07 -07:00
lib feat(chat): cleaner tool UI, inline LaTeX, clickable links (#4561) 2026-03-25 02:06:03 -07:00
shared Update license headers 2026-03-12 17:23:10 +00:00
stores Update license headers 2026-03-12 17:23:10 +00:00
types Update license headers 2026-03-12 17:23:10 +00:00
utils Update license headers 2026-03-12 17:23:10 +00:00
index.css studio: align Dataset/Parameters/Training cards, fix expandable height, animate LoRA settings (#4614) 2026-03-26 04:05:30 -07:00
main.tsx chat only with gguf for mac devices (#4300) 2026-03-15 23:20:48 +04:00
speech-recognition.d.ts Update license headers 2026-03-12 17:23:10 +00:00