google / ml-compiler-opt

Infrastructure for Machine Learning Guided Optimization (MLGO) in LLVM.
Apache License 2.0
612 stars 92 forks source link

【QUESTION】How to train an inline model with our own code? #314

Closed 18liumin closed 9 months ago

mtrofin commented 10 months ago

See the examples under docs, while they are specific to Fuchsia or chrome, they go through corpus extraction as a fairly early step.

High-level, assuming your project is cmake based:

Colibrow commented 10 months ago

A long time ago, I trained a model for my projects, here is the gist when training gist Hope it helps.

18liumin commented 10 months ago

why ninja toolchain-distribution ninja: error: unknown target 'toolchain-distribution DESTDIR=${LLVM_INSTALLDIR} ninja install-toolchain-distribution-stripped

Colibrow commented 9 months ago

why ninja toolchain-distribution ninja: error: unknown target 'toolchain-distribution DESTDIR=${LLVM_INSTALLDIR} ninja install-toolchain-distribution-stripped

maybe some of these dependencies were missed, it's been a long time.