Skip to content

feat(gpu): add to server model#454

Open
Shillaker wants to merge 10 commits intoBoavizta:mainfrom
Shillaker:feat/gpu-servers
Open

feat(gpu): add to server model#454
Shillaker wants to merge 10 commits intoBoavizta:mainfrom
Shillaker:feat/gpu-servers

Conversation

@Shillaker
Copy link
Collaborator

@Shillaker Shillaker commented Jan 21, 2026

Summary

This PR adds GPU component support to server configurations, allowing servers to include GPU data from archetypes when available.

Note: this is part one of two. In part two I will add the CSV file(s) with GPU specs and fuzzy-match lookup based on name.

Changes

GPU model:

  • Rename GPU adpe factor to adp, and tpe to pe so that they match other server components
  • Add name field to GPU
  • Allow GPU to handle impact factors that are not supported (e.g. primary energy)
  • Add completion functions for all GPU fields other than vram, to fill them with the default archetype values. This is necessary to support the server data model, where we only specify vram in the server archetype
  • Add test to check that GPU with only vram specified has more impact if the value of vram is larger

Server model:

  • Add GPU property to DeviceServer model that populates from archetype data
  • Add GPU field to ConfigurationServer DTO
  • Include GPU in server components list for impact calculations
  • Update server tests to include GPUs

Note: the PR is split into meaningful commits for review.

@Shillaker Shillaker force-pushed the feat/gpu-servers branch 5 times, most recently from e9d24fa to b8b5876 Compare January 21, 2026 13:51
@Shillaker Shillaker marked this pull request as ready for review January 21, 2026 13:51
@Shillaker Shillaker force-pushed the feat/gpu-servers branch 3 times, most recently from 2adfda3 to bb5d7bf Compare January 21, 2026 14:55
@Shillaker Shillaker force-pushed the feat/gpu-servers branch 3 times, most recently from 2c08bc9 to 29a7f3f Compare January 29, 2026 14:00
@Shillaker Shillaker modified the milestones: 2.0.2, 2.0.3 Jan 29, 2026
@Shillaker Shillaker force-pushed the feat/gpu-servers branch 2 times, most recently from 296435e to c9ff87e Compare February 4, 2026 07:11
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.

1 participant

Comments