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

Phi 3 vision ISQ support #410

Merged
merged 2 commits into from
Jun 8, 2024
Merged

Phi 3 vision ISQ support #410

merged 2 commits into from
Jun 8, 2024

Conversation

EricLBuehler
Copy link
Owner

Note: we should improve the code handling the dtype for ISQ, probably with macros.

Copy link

github-actions bot commented Jun 8, 2024

Code Metrics Report
  ===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 Dockerfile              1           34           25            0            9
 Happy                   1          442          369            0           73
 JSON                    9           21           21            0            0
 Python                 27          995          848           29          118
 TOML                   16          430          390            1           39
-------------------------------------------------------------------------------
 Jupyter Notebooks       1            0            0            0            0
 |- Markdown             1           60           30           22            8
 |- Python               1           96           87            1            8
 (Total)                            156          117           23           16
-------------------------------------------------------------------------------
 Markdown               16         1091            0          809          282
 |- BASH                 5          100           97            0            3
 |- Python               6          122          110            0           12
 |- Rust                 2           80           72            3            5
 (Total)                           1393          279          812          302
-------------------------------------------------------------------------------
 Rust                  109        33248        30125          552         2571
 |- Markdown            55          627           13          581           33
 (Total)                          33875        30138         1133         2604
===============================================================================
 Total                 181        36261        31778         1391         3092
===============================================================================
  

@EricLBuehler EricLBuehler merged commit f257423 into master Jun 8, 2024
10 of 11 checks passed
@EricLBuehler EricLBuehler deleted the phi3v_isq branch June 8, 2024 11:12
EricLBuehler added a commit that referenced this pull request Jun 10, 2024
* ISQ support for phi3v

* Document it
EricLBuehler added a commit that referenced this pull request Jun 10, 2024
* Implement gpt2 gguf tokenizer

* Fix unk tok calculation

* Remove normalizer

* Update gguf tokenizer

* Allow adding unk token when found

* Add unk token to builder if provided.

* Improve add_special_tokens

* Use tokenizerx builder

* Add useful comment

Co-authored-by: Brennan Kinney <[email protected]>

* Bump version to 0.1.16 (#404)

* Bump version to 0.1.17

* Fix version bump

* Add and update template READMEs (#405)

* Add readmes

* Fix typos

* Improve Rust docs (#406)

* Expose phi3v loader and remove unused deps (#408)

* Support format for mixtral where experts are in one tensor (#355)

* Normal loading metadata for vision models (#409)

* Phi 3 vision ISQ support (#410)

* ISQ support for phi3v

* Document it

* Remove causal masks cache (#412)

* Fix: use new slice_assign (#415)

* Use new slice_assign

* Fix dead image links

* Fix Phi-3 GGUF (#414)

* Fix kv head usage

* Fix rope weights

* Clippy

* Work on the gpt2 conversion

* Add comment

* Add some tests

* Update readme

---------

Co-authored-by: Brennan Kinney <[email protected]>
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.

None yet

1 participant