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 fa9f949 commit a3e35c2
Showing 1 changed file with 1 addition and 1 deletion.
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=1500,
max_new_tokens=1024,
stop_sequences=['End of response'],
stream=False,
temperature=temperature
Expand Down

0 comments on commit a3e35c2

Please sign in to comment.