Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
goliaro committed Oct 8, 2024
1 parent e778ffe commit 7ea8bd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/ops/fused.cu
Original file line number Diff line number Diff line change
Expand Up @@ -645,12 +645,7 @@ __host__ void
assert(false && "Fusion currently does not support type");
}
}
if (metas->meta[op]->inference_debugging &&
!(fused->op_op_type[op] == OP_ALLREDUCE ||
fused->op_op_type[op] == OP_PARALLEL_IDENTITY ||
fused->op_op_type[op] == OP_REPLICATE ||
fused->op_op_type[op] == OP_REPARTITION ||
fused->op_op_type[op] == OP_COMBINE)) {
if (metas->meta[op]->inference_debugging ) {
std::vector<GenericTensorAccessorR> input_accessors_to_save;
std::vector<GenericTensorAccessorR> weight_accessors_to_save;
std::vector<GenericTensorAccessorR> output_accessors_to_save;
Expand Down
2 changes: 1 addition & 1 deletion tests/inference/inference_alignment_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ def compare(hf_tensor, ff_tensor, label="", additional_ff_tensor=None, tolerance
hf_tensor_name = f"layers.{i}.self_attn.out_proj"
ff_tensor_name = convert_hf_filename_to_ff(hf_tensor_name.replace(".out_proj", ".o_proj"))
# the raw attention result, w/o o_proj. This is the output of senf_attn of FF and the input of o_proj in HF
output_comparison = TensorComparisonIdxs(hf_tensor_type="input", ff_tensor_type="output", hf_tensor_idx=0, ff_tensor_idx=0)
output_comparison = TensorComparisonIdxs(hf_tensor_type="input", ff_tensor_type="input", hf_tensor_idx=0, ff_tensor_idx=0)
hf_tensor = get_hf_tensor(hf_tensor_name, output_comparison)
# ff_tensor = get_ff_tensor(ff_tensor_name, output_comparison, hf_tensor.shape, tp_type=TPType.TO_REDUCE)
# TP for self-attn partitions the attention heads across TP workers
Expand Down

0 comments on commit 7ea8bd4

Please sign in to comment.