cohere-ai / cohere-python

Python Library for Accessing the Cohere API
https://docs.cohere.ai
MIT License
278 stars 60 forks source link

Can't fine tune latest reranker #492

Closed SardarArslan closed 2 months ago

SardarArslan commented 3 months ago

I am trying to fine tune the multilingual_v3.0 reranker with python sdk, but when I write version =v_3.0 or 3.0.0, it shows 2.0.0 in the fine-tuning response. My code:

ft=co.finetuning.create_finetuned_model(
    request=FinetunedModel(
        name="reranker",
        settings=Settings(
            base_model=BaseModel(
                base_type="BASE_TYPE_RERANK",
                name="multilingual",
                version='v_3.0'

            ),
            dataset_id="reranking-dataset-bb0747",
        ),
    ),
)

ft response:

CreateFinetunedModelResponse(finetuned_model=FinetunedModel(id='87db8998-fe68-4141-b555-f99359f97199', name='reranker', creator_id='22c4a2bb-f291-457b-925a-2c86440328e4', organization_id='42051e19-e7b7-4f22-b3e8-6273ed1c8aad', settings=Settings(base_model=BaseModel(**name='multilingual', version='2.0.0',** base_type='BASE_TYPE_RERANK', strategy='STRATEGY_TFEW'), dataset_id='reranking-dataset-bb0747', hyperparameters=None, multi_label=None), status='STATUS_QUEUED', created_at=datetime.datetime(2024, 5, 7, 9, 24, 19, 147257, tzinfo=datetime.timezone.utc), updated_at=datetime.datetime(2024, 5, 7, 9, 24, 19, 147257, tzinfo=datetime.timezone.utc), completed_at=None, last_used=None))

elaineg commented 3 months ago

We didn't add fine-tuning to v3 - We'll audit documentation for any mentions of it.

SardarArslan commented 3 months ago

Thanks. Do you guys plan on adding fine tuning for v3 in the near future?

On Wed, May 8, 2024 at 7:20 PM Elaine @.***> wrote:

We didn't add fine-tuning to v3 - We'll audit documentation for any mentions of it.

— Reply to this email directly, view it on GitHub https://github.com/cohere-ai/cohere-python/issues/492#issuecomment-2100699100, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATYE26BUEKKQEB4SZPSIABLZBIYCTAVCNFSM6AAAAABHKTKYLCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQGY4TSMJQGA . You are receiving this because you authored the thread.Message ID: @.***>

elaineg commented 2 months ago

Yes, though we don't have an ETA yet. Closing for now but I'll keep you posted if we land on a date.