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

Add chat api format with standard open ai chat format #1314

Merged
merged 29 commits into from
Nov 12, 2024

Conversation

elronbandel
Copy link
Member

No description provided.

Signed-off-by: elronbandel <[email protected]>
src/unitxt/formats.py Outdated Show resolved Hide resolved
Signed-off-by: elronbandel <[email protected]>
@yoavkatz
Copy link
Member

yoavkatz commented Oct 30, 2024

@elronbandel - I think we should make this self contained

  1. Add a HF inference engine (that uses the chat API)
  2. Add en example code that calls this API both as text and with image.

@OfirArviv
Copy link
Collaborator

OfirArviv commented Oct 30, 2024

  • Add a HF inference engine (that uses the chat API)
  • Add en example code that calls this API both as text and with image.

We should wait for Pawel pr for this. The changes to the inference engine are minimal. No need to duplicate it. Right now no one is waiting for this. Im the one who asked for it, so no pressure I think

Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Signed-off-by: elronbandel <[email protected]>
@elronbandel elronbandel merged commit 2d46594 into main Nov 12, 2024
11 checks passed
@elronbandel elronbandel deleted the add-chat-api-format branch November 12, 2024 08:42
perlitz pushed a commit that referenced this pull request Nov 12, 2024
* Add chat api format with standard open ai chat format

Signed-off-by: elronbandel <[email protected]>

* Upload artifact

Signed-off-by: elronbandel <[email protected]>

* Add docstring and a small fix

Signed-off-by: elronbandel <[email protected]>

* Fix

Signed-off-by: elronbandel <[email protected]>

* SImplify and remove copy code

Signed-off-by: elronbandel <[email protected]>

* Add lite llm

Signed-off-by: elronbandel <[email protected]>

* Evaluate BlueBench with LiteLLM

Signed-off-by: elronbandel <[email protected]>

* Fix token

Signed-off-by: elronbandel <[email protected]>

* Update requirements for inference tests

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Fix

Signed-off-by: elronbandel <[email protected]>

* Fix prepration

Signed-off-by: elronbandel <[email protected]>

* Bring vision back to order

Signed-off-by: elronbandel <[email protected]>

* Fix cards

Signed-off-by: elronbandel <[email protected]>

* Fix consistency

Signed-off-by: elronbandel <[email protected]>

* Fix example tests

Signed-off-by: elronbandel <[email protected]>

* Some more fixes

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Fix example testing

Signed-off-by: elronbandel <[email protected]>

* Organize examples tests

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Update examples

Signed-off-by: elronbandel <[email protected]>

* Update Inference Engines

Signed-off-by: elronbandel <[email protected]>

---------

Signed-off-by: elronbandel <[email protected]>
elronbandel added a commit that referenced this pull request Nov 12, 2024
* move judge to generic in arenahard

Signed-off-by: Yotam-Perlitz <[email protected]>

* remain with 1 demo in finqa

Signed-off-by: Yotam-Perlitz <[email protected]>

* fix names in subsets

Signed-off-by: Yotam-Perlitz <[email protected]>

* fix names in subsets

Signed-off-by: Yotam-Perlitz <[email protected]>

* make n_examples a sum of subsets

Signed-off-by: Yotam-Perlitz <[email protected]>

* push to catalog

Signed-off-by: Yotam-Perlitz <[email protected]>

* Add chat api format with standard open ai chat format (#1314)

* Add chat api format with standard open ai chat format

Signed-off-by: elronbandel <[email protected]>

* Upload artifact

Signed-off-by: elronbandel <[email protected]>

* Add docstring and a small fix

Signed-off-by: elronbandel <[email protected]>

* Fix

Signed-off-by: elronbandel <[email protected]>

* SImplify and remove copy code

Signed-off-by: elronbandel <[email protected]>

* Add lite llm

Signed-off-by: elronbandel <[email protected]>

* Evaluate BlueBench with LiteLLM

Signed-off-by: elronbandel <[email protected]>

* Fix token

Signed-off-by: elronbandel <[email protected]>

* Update requirements for inference tests

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Fix

Signed-off-by: elronbandel <[email protected]>

* Fix prepration

Signed-off-by: elronbandel <[email protected]>

* Bring vision back to order

Signed-off-by: elronbandel <[email protected]>

* Fix cards

Signed-off-by: elronbandel <[email protected]>

* Fix consistency

Signed-off-by: elronbandel <[email protected]>

* Fix example tests

Signed-off-by: elronbandel <[email protected]>

* Some more fixes

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Fix example testing

Signed-off-by: elronbandel <[email protected]>

* Organize examples tests

Signed-off-by: elronbandel <[email protected]>

* Update

Signed-off-by: elronbandel <[email protected]>

* Update examples

Signed-off-by: elronbandel <[email protected]>

* Update Inference Engines

Signed-off-by: elronbandel <[email protected]>

---------

Signed-off-by: elronbandel <[email protected]>

* revert generic inference engine change

Signed-off-by: Yotam-Perlitz <[email protected]>

* fix type

Signed-off-by: Yotam-Perlitz <[email protected]>

---------

Signed-off-by: Yotam-Perlitz <[email protected]>
Signed-off-by: elronbandel <[email protected]>
Co-authored-by: Elron Bandel <[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.

3 participants