Skip to content

Fix NVE dependency - #323

Merged
shijieliu merged 1 commit into
NVIDIA:mainfrom
geoffreyQiu:fix_nve_dep
Mar 12, 2026
Merged

shijieliu merged 1 commit into
NVIDIA:mainfrom
geoffreyQiu:fix_nve_dep

Conversation

@geoffreyQiu

Copy link
Copy Markdown
Collaborator

Description

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@greptile-apps

greptile-apps Bot commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a single-line dependency rename in the NVE (NVIDIA Embeddings) integration layer, updating nve_ps.NVLocalParameterServer to nve_ps.NVEParameterServer to match the updated pynve library API.

  • Dependency fix: NVLocalParameterServer was renamed to NVEParameterServer in the upstream pynve library; this PR updates the single call-site in get_nve_local_ps.
  • No behavioral change: The arguments and return semantics remain the same — only the class name changed.
  • Minor follow-up opportunity: The helper function get_nve_local_ps still carries the stale "local" qualifier in its name now that the underlying class is the more general NVEParameterServer.

Confidence Score: 5/5

  • This PR is safe to merge — it is a minimal one-line rename to match an upstream API change.
  • The change is a single-line class rename with no logic modifications, no new dependencies introduced, and the surrounding code is guarded by a try/except that gracefully handles import failures.
  • No files require special attention.

Important Files Changed

Filename Overview
examples/hstu/modules/nve_embeddingcollection.py Single-line fix renaming NVLocalParameterServer to NVEParameterServer to match updated NVE library API; no logic changes.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A["InferenceNVEEmbeddingCollection.__init__()"] --> B{use_gpu_only?}
    B -- No --> C{sparse_shareables provided?}
    C -- Yes --> D["Use sparse_shareables[name] as remote_interface"]
    C -- No --> E["get_nve_ps(0, embedding_dim, torch.float32)"]
    E --> F["nve_ps.NVEParameterServer(...)"]
    F -->|"was: NVLocalParameterServer"| G["NVEmbedding(cache_type=Hierarchical)"]
    D --> G
    B -- Yes --> H["NVEmbedding(cache_type=NoCache)"]
Loading

Last reviewed commit: 08ff87a

@shijieliu
shijieliu merged commit 91623e4 into NVIDIA:main Mar 12, 2026
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.

2 participants