Skip to content

lamini.Lamini.upload_file

This function can be used to upload a large file to the server for finetuning on it.

llm = Lamini(model_name="meta-llama/Llama-2-7b-chat-hf")
llm.upload_file(<file_path>)

Make sure that the data in the file is in the following format:

[
{"input": "What's your favorite animal?","output": "dog"},
{"input": "What's your favorite color?","output": "blue"},
    ...
]

You can subsequently train on this data using the train function.

llm = Lamini(model_name="meta-llama/Llama-2-7b-chat-hf")
llm.upload_file(<file_path>)
llm.train()