Skip to content

Commit

Permalink
changed max new token limit
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiksoman committed Sep 24, 2024
1 parent ebf636c commit 36d81c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
lambda-pipeline/.ipynb_checkpoints/
code/finetuning/.ipynb_checkpoints/
code/notebook/.ipynb_checkpoints/
code/__pycache__/
code/.ipynb_checkpoints/
Expand Down
2 changes: 1 addition & 1 deletion lambda-pipeline/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def get_model_response(input_text, temperature: float = 0.7):
try:
client = InferenceClient(API_URL)
response = client.text_generation(input_text,
max_new_tokens=512,
max_new_tokens=1024,
stop_sequences=['End of response'],
stream=False,
temperature=temperature
Expand Down

0 comments on commit 36d81c9

Please sign in to comment.