Hello, I wanted to test out how fine-tuning works and if it works better then general modals for text complation.
I got a .jsonl file looking like the one on the attachement, just as a first step test. Then I wanted to use the test commands in the documents to upload a file:
https://docs.mistral.ai/capabilities/finetuning/#fine-tuning-basics
import os
from mistralai.client import MistralClient
api_key = "..."
client = MistralClient(api_key=api_key)
with open("trainingData1.jsonl", "rb") as f:
training_data = client.files.create(file=("trainingData1.jsonl", f))
but I got this following error:
Traceback (most recent call last):
File "d:\Real Desktop\work things\Python\AI\trainingTest.py", line 8, in <module>
training_data = client.files.create(file=("trainingData1.jsonl", f))
^^^^^^^^^^^^
AttributeError: 'MistralClient' object has no attribute 'files'
Are the documents outdated or am I just being dumb. Thanks
no problem!