Skip to content

Pierre-Alexandre-Montiel/OpenAI-Fine-Tuning-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image

Description

[Python]- This Python script extracts text data from documents, creates JSONL files, and fine-tunes an OpenAI language model using the extracted data.

Installation

$ pip install -r requirements.txt

Dependencies

$ os
$ docx
$ pandas
$ jsonlines
$ tiktoken
$ openai
$ time
$ progress
$ pyfiglet
$ click

Running the script

# production mode
$ python .\extraction.py

Acknowledgments

OpenAI API documentation for providing instructions on how to use the API = https://beta.openai.com/docs/api-reference/introduction. click for providing a command line interface for the script = https://click.palletsprojects.com/en/7.x/. docx for providing the ability to read and write .docx files = https://python-docx.readthedocs.io/en/latest/.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages