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

Make config.json consistent between shortfin and sharktank #487

Merged
merged 8 commits into from
Dec 11, 2024

Conversation

renxida
Copy link
Contributor

@renxida renxida commented Nov 12, 2024

And remove the adaption layer in buidl_tools/integration_tests/llm/conftest.py

return {
"module_name": "module",
"module_abi_version": 1,
"max_seq_len": hp.context_length,
"attn_head_count": hp.attention_head_count,
# "attn_head_count": hp.attention_head_count, # we don't need the attention head count we just need the kvcache attention head count for shortfin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since all of the docs are updated and references to "attn_head_count" are removed, this is probably fine to delete. Otherwise, it'll sit here lingering for who knows how long

Copy link
Contributor

@stbaione stbaione left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! We can probably remove the commented out line for attn_head_count in export_paged_llm_v1.py

Added types and docstrings definitely clears things up

@renxida renxida marked this pull request as ready for review December 10, 2024 18:53
@renxida renxida enabled auto-merge (squash) December 11, 2024 08:45
@renxida renxida merged commit 63edf36 into nod-ai:main Dec 11, 2024
19 of 20 checks passed
stbaione added a commit that referenced this pull request Dec 12, 2024
#676)

# Description

Did a pass through and made updates + fixes to the user docs for
`e2e_llama8b_mi300x.md`.

1. Update install instructions for `shark-ai`
2. Update nightly install instructions for `shortfin` and `sharktank`
3. Update paths for model artifacts to ensure they work with
`llama3.1-8b-fp16-instruct`
4. Remove steps to `write edited config`. No longer needed after #487 

Added back `sentencepiece` as a requirement for `sharktank`. Not having
it caused `export_paged_llm_v1` to break when installing nightly:

```text
ModuleNotFoundError: No module named 'sentencepiece'
```

This was obfuscated when building from source, because `shortfin`
includes `sentencepiece` in `requirements-tests.txt`.
IanNod pushed a commit to IanNod/SHARK-Platform that referenced this pull request Dec 17, 2024
And remove the adaption layer in
buidl_tools/integration_tests/llm/conftest.py
IanNod pushed a commit to IanNod/SHARK-Platform that referenced this pull request Dec 17, 2024
nod-ai#676)

# Description

Did a pass through and made updates + fixes to the user docs for
`e2e_llama8b_mi300x.md`.

1. Update install instructions for `shark-ai`
2. Update nightly install instructions for `shortfin` and `sharktank`
3. Update paths for model artifacts to ensure they work with
`llama3.1-8b-fp16-instruct`
4. Remove steps to `write edited config`. No longer needed after nod-ai#487 

Added back `sentencepiece` as a requirement for `sharktank`. Not having
it caused `export_paged_llm_v1` to break when installing nightly:

```text
ModuleNotFoundError: No module named 'sentencepiece'
```

This was obfuscated when building from source, because `shortfin`
includes `sentencepiece` in `requirements-tests.txt`.
monorimet pushed a commit that referenced this pull request Jan 8, 2025
And remove the adaption layer in
buidl_tools/integration_tests/llm/conftest.py
monorimet pushed a commit that referenced this pull request Jan 8, 2025
#676)

# Description

Did a pass through and made updates + fixes to the user docs for
`e2e_llama8b_mi300x.md`.

1. Update install instructions for `shark-ai`
2. Update nightly install instructions for `shortfin` and `sharktank`
3. Update paths for model artifacts to ensure they work with
`llama3.1-8b-fp16-instruct`
4. Remove steps to `write edited config`. No longer needed after #487 

Added back `sentencepiece` as a requirement for `sharktank`. Not having
it caused `export_paged_llm_v1` to break when installing nightly:

```text
ModuleNotFoundError: No module named 'sentencepiece'
```

This was obfuscated when building from source, because `shortfin`
includes `sentencepiece` in `requirements-tests.txt`.
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