Skip to content

Commit

Permalink
add readme for adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
qai222 committed Jun 25, 2023
1 parent 21811fb commit 2a91cd4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion models_llama/adapter/ecdf.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions models_llama/adapter/prepare_instructions.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def create_datasets(word_length=500, dataset_size=1000, train_test_ratio=0.2, se
print("criterion pool:", word_length)
print("n_all_reactions:", len(all_reactions))
print("n_too_long:", n_too_long)
print("n_pool:", len(reactions), ":.3f".format(len(reactions) / (len(all_reactions) - n_too_long)))
print("n_pool:", len(reactions), "{:.3f}".format(len(reactions) / (len(all_reactions) - n_too_long)))

if show_hist:
import plotly.express as px
Expand Down Expand Up @@ -107,5 +107,5 @@ def save_datasets(word_length=500, dataset_size=1000, train_test_ratio=0.2, seed
criterion pool: 900
n_all_reactions: 190764
n_too_long: 504
n_pool: 60822 :.3f
n_pool: 60822 0.320
"""
9 changes: 9 additions & 0 deletions models_llama/adapter/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Finetune with LLaMA adapter and ORD data

### prepare datasets
1. Unzip the cleaned ORD data from [data_from_pb_no_warning_*.7z](../../ord_data/data_from_pb_no_warning_20230416.7z)
2. run `prepare_instructions.py`, datasets will be written to the [data](data)
folder as `ins_*_train.json` and `ins_*_test.json`.

### finetune
See [my fork](https://github.com/qai222/LLaMA-Adapter) to [LLaMA-Adapter](https://github.com/OpenGVLab/LLaMA-Adapter).

0 comments on commit 2a91cd4

Please sign in to comment.