Import time of the library is high

Aperta
#23 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python, pytorch, tensorflow
Ambito
performance

Direzione di ricerca

Inizia con il modulo perf_counter fornito e riproduci le tempistiche in ambienti nuovi con installati rispettivamente solo Feast, TensorFlow e PyTorch. Traccia il lavoro attivato da import feast, inclusi gli avvisi segnalati, e stabilisci quali import sono responsabili del ritardo; il lavoro è completato quando il costo non necessario degli import e il comportamento degli avvisi sono stati risolti senza compromettere l'import della libreria.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The import time of the library seems to be very high.

Steps to reproduce:
Import times with only feast installed

Create a fresh virtual environment and install feast.
Run the following python module.

from time import perf_counter
now=perf_counter()
import feast
print(perf_counter()-now)

Result: The printed run time in my case was 2.710442792000322. Already pretty high for an import of a library.
Additionally I get a warning,
None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.

Import times after adding TF

Install tensorflow lib.
Run the script again.

Result: Took ~3.1 seconds. Warning no longer being printed.

Import times after adding PyTorch

Install pytorch (torch).
Ran the script again.

Result: The run time went up to ~15 seconds.
Additionally, new warning is now being printed.

2025-07-23 13:36:02.068516: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:467] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1753270562.131461   66853 cuda_dnn.cc:8579] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1753270562.152065   66853 cuda_blas.cc:1407] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
W0000 00:00:1753270562.278959   66853 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1753270562.278987   66853 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1753270562.278991   66853 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
W0000 00:00:1753270562.278995   66853 computation_placer.cc:177] computation placer already registered. Please check linkage and avoid linking the same target more than once.
2025-07-23 13:36:02.293151: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Lingua principale
Jupyter Notebook
Stelle
105
Fork
58
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di feast-dev/feast-workshop

Tutte le issue di feast-dev/feast-workshop

Issue simili

Altre issue su Performance

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.