clarify in readme
This commit is contained in:
parent
2331212b35
commit
eb6c53cf55
|
@ -1,4 +1,4 @@
|
||||||
Steps:
|
Steps:
|
||||||
|
|
||||||
1. Run `python speed_benchmark/speed_benchmark.py` which times operations and writes their time to `speed_benchmark/info_a100_py2.jsonl` (feel free to change the name for your profiling).
|
1. Run `python speed_benchmark/speed_benchmark.py` which times operations and writes their time to `speed_benchmark/info_a100_py2.jsonl` (change the name of the jsonl to a different name for your profiling).
|
||||||
2. Run `python speed_benchmark/make_plot_with_jsonl.py`, which produces the `speed_benchmark/plot_with_info.pdf`.
|
2. Run `python speed_benchmark/make_plot_with_jsonl.py`, which produces the `speed_benchmark/plot_with_info.pdf`. Again make sure you change the jsonl which is being processed.
|
|
@ -20,6 +20,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
ax = fig.add_subplot(gs[0, 0])
|
ax = fig.add_subplot(gs[0, 0])
|
||||||
|
|
||||||
|
# TODO: change this to what you want.
|
||||||
rdf = pd.read_json('speed_benchmark/info_a100_py2.jsonl', lines=True)
|
rdf = pd.read_json('speed_benchmark/info_a100_py2.jsonl', lines=True)
|
||||||
df = rdf[rdf.batch_size == batch_size_for_plot1]
|
df = rdf[rdf.batch_size == batch_size_for_plot1]
|
||||||
|
|
||||||
|
|
|
@ -97,5 +97,6 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
info_json = json.dumps(info)
|
info_json = json.dumps(info)
|
||||||
|
|
||||||
with open("speed_benchmark/info_a100_py2.jsonl", "a") as file:
|
# TODO: change this to what you want.
|
||||||
|
with open("speed_benchmark/info.jsonl", "a") as file:
|
||||||
file.write(info_json + "\n")
|
file.write(info_json + "\n")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user