Skip to content

Commit

Permalink
Merge branch 'main' of github.com:timvieira/genparse
Browse files Browse the repository at this point in the history
  • Loading branch information
benlebrun committed Jun 18, 2024
2 parents cc0a898 + bac6aa1 commit a2fa116
Show file tree
Hide file tree
Showing 29 changed files with 568 additions and 682 deletions.
4 changes: 2 additions & 2 deletions bench/run_spider_llama2_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ def main():
model = 'meta-llama/Llama-2-7b-chat-hf'
model = model.replace('7b', args.model_size)
access_token = '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'
logger.info(f"using model {model}")
logger.info(f'using model {model}')

tokenizer = AutoTokenizer.from_pretrained(model, token=access_token)
# tokenizer = AutoTokenizer.from_pretrained(model, token=access_token)
pipe = pipeline(
'text-generation',
model=model,
Expand Down
2 changes: 1 addition & 1 deletion bench/spider/content_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def is_number(s: str) -> bool:
try:
float(s.replace(',', ''))
return True
except:
except ValueError:
return False


Expand Down
Loading

0 comments on commit a2fa116

Please sign in to comment.