Sagemaker not giving output correctly

#4
by rishisaraf11 - opened

We deployed the model in Sagemake however output is incomplete . Below is response for example prompt

[{'generated_text': 'CREATE TABLE stadium (\n stadium_id number,\n location text,\n name text,\n capacity number,\n highest number,\n lowest number,\n average number\n)\n\nCREATE TABLE singer (\n singer_id number,\n name text,\n country text,\n song_name text,\n song_release_year text,\n age number,\n is_male others\n)\n\nCREATE TABLE concert (\n concert_id number,\n concert_name text,\n theme text,\n stadium_id text,\n year text\n)\n\nCREATE TABLE singer_in_concert (\n concert_id number,\n singer_id text\n)\n\n-- Using valid SQLite, answer the following questions for the tables provided above.\n\n-- What is the maximum, the average, and the minimum capacity of stadiums ?\n\nSELECT MAX'}]

NumbersStation org

You can use max_new_tokens to control the max output sequence length. The model prefers torch.bfloat16.

Sign up or log in to comment