-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: Schedule File GenAI Perf frontend #168
base: main
Are you sure you want to change the base?
Conversation
if j == args.num_prompts: | ||
break | ||
timings.append(float(json.loads(line)["timestamp"]) / 1000) | ||
cmd += ["--schedule", ",".join(map(str, timings))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what the expected format is for the schedule is after recent changes.
for _ in range(2): | ||
diff = requested_prompt_tokens - get_token_length(prompt) | ||
for _ in range(diff): | ||
prompt = "hi " + prompt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should actually always be the case to ensure consistent number of tokens in input I think
@@ -24,6 +24,9 @@ | |||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
|
|||
import json | |||
import os |
Check notice
Code scanning / CodeQL
Unused import Note
@@ -24,6 +24,9 @@ | |||
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
|
|||
import json | |||
import os | |||
import subprocess |
Check notice
Code scanning / CodeQL
Unused import Note
Co-authored-by: hongkuan <[email protected]>
No description provided.