﻿# LiteLLM reads Fireworks fractional model sizes correctly in fallback pricing

Freeze the test price map and compare fractional-size fallback with explicit model pricing; a corrected name parser is not a current-price guarantee.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-litellm-fireworks-fractional-model-size-pricing/
Language: en

The November 13 LiteLLM v1.111.0-dev.2 prerelease fixes Fireworks fallback pricing for model names containing sizes such as 1p5b. The earlier parser could read the suffix as 5B instead of 1.5B and choose a larger price bucket. This concerns unmapped model estimation; a decimal-size spelling does not announce a new model, tariff or measured performance result.

## Use a deliberately unmapped model identity

Choose a harmless synthetic Fireworks identity containing 1p5b that is absent from the frozen price map. Hold token usage constant and inspect the selected size bucket. Repeat with 0p6b and an ordinary integer-size control. If the chosen model already has an explicit catalog entry, the fallback may never execute, allowing a regression fixture to pass while leaving the fractional parser entirely untested.

## Separate a family version from parameter size

The reported example includes qwen2p5-1p5b, where the family version and parameter size both contain p. Test extraction of the intended size rather than replacing every p in the complete name. Keep a malformed name as a control and record the documented fallback outcome. A robust accounting fixture should expose what the parser recognized, since a plausible final number can conceal a match against the wrong part of the identifier.

## Explicit prices retain a separate authority

Add an explicit synthetic price for the same model and verify its documented precedence over size estimation. Compute both expected totals outside the gateway with deliberately different rates. The parser repair should not replace an operator-approved exact mapping merely because it can now recognize a number. Keep input and output counts distinct so a coincidentally equal total cannot hide selection of the wrong rate component.

## Correct estimates still require reconciliation

Compare client-visible cost and persisted spend for the same fixed usage, recording whether each used an exact row or a fallback bucket. The release fixes a concrete overestimate described by the maintainers; it does not validate every fine-tune’s commercial terms. A useful migration report preserves the model spelling, parsed size, price-map revision and accounting path, allowing later invoice reconciliation without treating a naming heuristic as a provider-issued price commitment.

## Sources

- [LiteLLM v1.111.0-dev.2 prerelease notes](https://github.com/BerriAI/litellm/releases/tag/v1.111.0-dev.2)
- [LiteLLM implementation and review #51451](https://github.com/BerriAI/litellm/pull/51451)

## Related reading

- [LiteLLM Proxy: when to operate your own model gateway](/journal/litellm-proxy-guide/)
- [LiteLLM budgets: periods, shared limits and overrun tests](/journal/litellm-budget-reset/)
