Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port 24.04 changes into main #851

Merged
merged 12 commits into from
Jun 7, 2024
Merged

Port 24.04 changes into main #851

merged 12 commits into from
Jun 7, 2024

Conversation

ashors1
Copy link
Contributor

@ashors1 ashors1 commented May 24, 2024

No description provided.

ashors1 and others added 6 commits May 23, 2024 15:27
**Changes:**
- New option flags `--pax-split-qkv` and
`--te-qkv-layout={qkv_packed,kv_packed}` for identifying QKV layouts for
both the Pax source and TE target. Default behavior without new flags
remains unchanged.
- New option flag `--use-gated-activations` to support gated GELU in
LLaMa2.
- Bias terms are omitted from the checkpoint map when `--weight-only` is
used.

**Notes:**
- Changes are verified with a 70b LLaMa2 checkpoint previously converted
with @mingxu1067's hard-coded LLaMa2-only converter script.
```
python converter/main.py \
    --input-path=<...> \
    --output-path=<...> \
    --fw=pax --direction=fw2te \
    --num-of-layer=80 \
    --num-of-head=64 \
    --head-dim=128  \
    --mlp-intermediate-dim=28672 \
    --kernel-chunk-size=512 \
    --weight-only \
    --use-gated-activations \
    --pax-split-qkv \
    --te-qkv-layout=kv_packed
```

---------

Signed-off-by: Alp Dener <[email protected]>
Co-authored-by: ashors1 <[email protected]>
README.md Outdated Show resolved Hide resolved
terrykong
terrykong previously approved these changes May 29, 2024
@terrykong
Copy link
Contributor

LGTM. I cancelled the most recent CI since the most recent change was just to markdown and previous CI run showed no unexpected errors.

@ashors1 ashors1 merged commit 0005642 into main Jun 7, 2024
13 of 66 checks passed
@ashors1 ashors1 deleted the 24.04-to-main branch June 7, 2024 16:40
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.

3 participants