Skip to content

Commit

Permalink
remove redundent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
april-yyt committed Jan 14, 2024
1 parent 9d1a901 commit 437577e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
7 changes: 1 addition & 6 deletions inference/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,4 @@ weights
tokenizers
prompt
output
python/.chainlit
python/chainlit.md
python/spec_infer.py
python/incr_decoding.py
.env
python/chain_testing.py
.env
14 changes: 5 additions & 9 deletions inference/python/spec_infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,11 @@ def main():

llm.start_server()

# if len(configs.prompt) > 0:
# prompts = [s for s in json.load(open(configs.prompt))]
# results = llm.generate(prompts)
# else:
# result = llm.generate("Three tips for staying healthy are: ")

result = llm.generate("Three tips for staying healthy are: ")


if len(configs.prompt) > 0:
prompts = [s for s in json.load(open(configs.prompt))]
results = llm.generate(prompts)
else:
result = llm.generate("Three tips for staying healthy are: ")

if __name__ == "__main__":
print("flexflow inference example (speculative inference)")
Expand Down

0 comments on commit 437577e

Please sign in to comment.