Skip to content

Commit

Permalink
undo changes in inference parser
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiacharnota committed Nov 7, 2023
1 parent ae89388 commit 34dd9b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions inference-mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import torch
import transformers
import datasets
from peft import PeftModel

from helpers import get_quantization_config
Expand Down Expand Up @@ -64,12 +63,11 @@ def main():
logging.basicConfig(level=logging.INFO)
parser = argparse.ArgumentParser(description='Fine-tuned Model Inference')
# fmt: off
parser.add_argument('--base_mistral_model', type=str, default='mistralai/Mistral-7B-v0.1',
help='Base mistral from hugging face')
parser.add_argument('--base_mistral_model', type=str, default='mistralai/Mistral-7B-v0.1', help='Base mistral from hugging face')
parser.add_argument('--checkpoint_path', default='/valohai/inputs/finetuned-checkpoint/')
parser.add_argument('--max_tokens', type=int, default=305, help='Maximum number of tokens in response')
parser.add_argument('--model_path', default='/valohai/inputs/model-base/')
parser.add_argument('--prompt', type=str, help='Input prompt for text generation')
parser.add_argument('--prompt', type=str, required=True, help='Input prompt for text generation')
# fmt: on

args = parser.parse_args()
Expand Down

0 comments on commit 34dd9b0

Please sign in to comment.