Skip to content

Commit

Permalink
Upload Flan-Alpaca-XXL (11B)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiayewken committed Mar 28, 2023
1 parent f3e8815 commit 1dd8fac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def export_to_hub(path: str, repo: str, temp: str = "temp"):
model = LightningModel.load_from_checkpoint(path)
model.model.save_pretrained(temp)
model.tokenizer.save_pretrained(temp)
del model # Save memory?

api = HfApi()
api.create_repo(repo_id=repo, repo_type="model", exist_ok=True)
Expand All @@ -59,6 +60,10 @@ def export_to_hub(path: str, repo: str, temp: str = "temp"):
--path "outputs_unclean/model/xl/epoch=2-step=2439.ckpt" \
--repo declare-lab/flan-alpaca-xl
p inference.py export_to_hub \
--path "outputs/model/xxl/epoch=0-step=203.ckpt" \
--repo declare-lab/flan-alpaca-xxl
"""


Expand Down

0 comments on commit 1dd8fac

Please sign in to comment.