Skip to content

wgpu forward: read rope_theta from model config, not hardcoded 1e6 (#4832) #5503

Closed as not planned

Description

@noahgift

Slice of #5338. Checked against origin/main d6ea1ec (2026-10-18): still open.

Files: crates/aprender-compute/src/backends/gpu/device/linalg/wgsl_forward.rs:970 (constructor :312)
Proves it: unit test: the theta used for position>0 RoPE follows the configured value (Llama 1e4 vs Qwen 1e6)
Size: about 90 changed lines, one PR, one ticket (#5498 pull rule).

Label ready: a worker may pull this.

Activity

  1. added this to the 0.73.0 milestone on Oct 18, 2026
  2. added
    ready<=200 lines, scoped, verified not done on origin/main; a worker may pull it
    on Oct 18, 2026
  3. noahgift commented on Oct 18, 2026

    @noahgift
    MemberAuthor

    Branch fix/5503-wgpu-rope-theta @ df0db3c (main merged in). Verified: cargo test -p aprender-compute --lib --features gpu rope_ -> rope_follows_the_configured_theta + rope_matches_the_closed_form pass (the earlier WIP's filter ran 0 tests because it lacked --features gpu); cargo check -p aprender-serve -p aprender-train (gpu) and -p apr-cli --features wgpu clean. Callers set the model's rope_theta. No PR yet (cap).

  4. noahgift commented on Oct 22, 2026

    @noahgift
    MemberAuthor

    tracked in #3997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready<=200 lines, scoped, verified not done on origin/main; a worker may pull it

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions