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

[feature] Add a code in raft to do everything locally, like creating dataset and fine-tuning #597

Closed
himanshushukla12 opened this issue Aug 23, 2024 · 7 comments
Labels
enhancement New feature or request

Comments

@himanshushukla12
Copy link
Contributor

I saw the approach which is great, but please add the fully locally doable process.

@himanshushukla12 himanshushukla12 added the enhancement New feature or request label Aug 23, 2024
@himanshushukla12
Copy link
Contributor Author

I just want that i should be able to run the command given below without openAI API Key.

python3 raft.py \
  --datapath PATH_TO_DATA \
  --output OUTPUT_PATH \
  --output-format hf \ # or completion or chat
  --distractors 3 \
  --p 1.0 \
  --doctype pdf \
  --chunk_size 512 \
  --questions 5 \
  --openai_key YOUR_OPENAI_KEY

ShishirPatil added a commit that referenced this issue Aug 27, 2024
@ShishirPatil
Copy link
Owner

Merged #605

@himanshushukla12
Copy link
Contributor Author

I implemented it by my own and submitted the PR also, please check it in directory `gorilla\raft' and here you'll see 'raft_local.py' , where it is using the hugging-face models to run the script completely locally.

@Se-Hun
Copy link

Se-Hun commented Aug 28, 2024

Hello, I wanna fine-tuning my model with raft approach. But i didn't find the script for training.
Are you guys not going to release the fine-tuning code?

@himanshushukla12
Copy link
Contributor Author

@Se-Hun They finetuned it using Azure Could, If you want I can push the new code to do the training locally.

@Se-Hun
Copy link

Se-Hun commented Aug 29, 2024

Thank you for your answering.
Can you push the new code for training? I wanna reproduce this approach and i need the official code.

@himanshushukla12
Copy link
Contributor Author

Thank you for your answering. Can you push the new code for training? I wanna reproduce this approach and i need the official code.

@Se-Hun you can checkout code for fine-tuning any model, it is same as what they did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants