mirror of https://github.com/commaai/tinygrad.git
generate new kernel dataset (#7034)
* generate new kernel dataset pre req to remove NumNode ``` extra/optimization/generate_dataset.sh gzip -k /tmp/sops mv /tmp/sops.gz extra/datasets/ ``` * fix var range in fuzz_linearizer
This commit is contained in:
parent
1a27417262
commit
c4c806a210
Binary file not shown.
|
@ -16,7 +16,7 @@ python3 examples/beautiful_cartpole.py
|
||||||
python3 examples/mlperf/model_spec.py
|
python3 examples/mlperf/model_spec.py
|
||||||
python3 examples/yolov8.py ./test/models/efficientnet/Chicken.jpg
|
python3 examples/yolov8.py ./test/models/efficientnet/Chicken.jpg
|
||||||
examples/openpilot/go.sh
|
examples/openpilot/go.sh
|
||||||
JIT=2 BIG=1 MPS=1 pytest test/ --ignore=test/test_fusion_op.py --ignore=test/test_linearizer_failures.py --ignore=test/test_gc.py --ignore=test/test_speed_v_torch.py --ignore=test/test_jit.py
|
JIT=2 BIG=1 MPS=1 pytest -n=auto test/ --ignore=test/test_fusion_op.py --ignore=test/test_linearizer_failures.py --ignore=test/test_gc.py --ignore=test/test_speed_v_torch.py --ignore=test/test_jit.py
|
||||||
JIT=2 BIG=1 MPS=1 python -m pytest test/test_gc.py
|
JIT=2 BIG=1 MPS=1 python -m pytest test/test_gc.py
|
||||||
JIT=2 BIG=1 MPS=1 python -m pytest test/test_jit.py
|
JIT=2 BIG=1 MPS=1 python -m pytest test/test_jit.py
|
||||||
JIT=2 BIG=1 MPS=1 python -m pytest test/test_speed_v_torch.py
|
JIT=2 BIG=1 MPS=1 python -m pytest test/test_speed_v_torch.py
|
||||||
|
|
|
@ -85,7 +85,7 @@ def compare_linearizer(lin: Kernel, rawbufs=None, var_vals=None, ground_truth=No
|
||||||
|
|
||||||
if var_vals is None:
|
if var_vals is None:
|
||||||
# TODO: handle symbolic max case
|
# TODO: handle symbolic max case
|
||||||
var_vals = {v: random.randint(v.min, v.max if isinstance(v.max, int) else v.min) for v in lin.ast.variables()}
|
var_vals = {v: random.randint(v.vmin, v.vmax) for v in lin.ast.variables()}
|
||||||
|
|
||||||
if ground_truth is None and not has_bf16:
|
if ground_truth is None and not has_bf16:
|
||||||
unoptimized = Kernel(lin.ast)
|
unoptimized = Kernel(lin.ast)
|
||||||
|
|
Loading…
Reference in New Issue