[all-commits] [llvm/llvm-project] 130f24: [IR2Vec][llvm-ir2vec] Revamp triplet generation an...

S. VenkataKeerthy via All-commits all-commits at lists.llvm.org
Tue Jul 29 11:57:14 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 130f24b28d38ca3679a76ab7a6a4f7ff7e9f4c81
      https://github.com/llvm/llvm-project/commit/130f24b28d38ca3679a76ab7a6a4f7ff7e9f4c81
  Author: S. VenkataKeerthy <31350914+svkeerthy at users.noreply.github.com>
  Date:   2025-07-29 (Tue, 29 Jul 2025)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-ir2vec.rst
    A llvm/test/tools/llvm-ir2vec/entities.ll
    A llvm/test/tools/llvm-ir2vec/error-handling.ll
    M llvm/test/tools/llvm-ir2vec/triplets.ll
    M llvm/tools/llvm-ir2vec/llvm-ir2vec.cpp

  Log Message:
  -----------
  [IR2Vec][llvm-ir2vec] Revamp triplet generation and add entity mapping mode  (#149214)

Add entity mapping mode to llvm-ir2vec and improve triplet generation format for knowledge graph embedding training.

This change streamlines the workflow for training the vocabulary embeddings with IR2Vec by:
1. Directly generating numeric IDs instead of requiring string-to-ID preprocessing
2. Providing entity mappings in standard knowledge graph embedding format
3. Structuring triplet output in train2id format compatible with knowledge graph embedding frameworks
4. Adding metadata headers to simplify post-processing and training setup

These improvements make IR2Vec more compatible with standard knowledge graph embedding training pipelines and reduce the preprocessing steps needed before training.

See #149215 for more details on how it is used.

(Tracking issues - #141817, #141834)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list