Giter Site home page Giter Site logo

Comments (4)

hanneshapke avatar hanneshapke commented on July 22, 2024

Hi @deep-diver,

If that is the case, the problem is that I want to allocate one GPU k8s node for one specific TFX component.
Last time, I checked TFX didn't support component specific node assignments when KFP is used as an orchestrator. Maybe @rcrowe-google knows if/when TFX supports component specific node assignments.

Regarding GCP AI Platform: Can you share a bit more info around your configuration?
I suspect that the eval is running on a non-GPU node and depending on the number of samples during your eval step, it can take forever. Try to run it on a GPU or switch to ALBERT which executes faster on CPUs (example is in the same Github folder).

I hope this helps.

from workshops.

deep-diver avatar deep-diver commented on July 22, 2024

@hanneshapke

Here is my personal repo.

I am not sure how to set smaller step number?

  eval_config = tfma.EvalConfig(
      model_specs=[tfma.ModelSpec(label_key='label')],
      slicing_specs=[tfma.SlicingSpec()],
      metrics_specs=[
          tfma.MetricsSpec(metrics=[
              tfma.MetricConfig(
                  class_name='CategoricalAccuracy',
                  threshold=tfma.MetricThreshold(
                      value_threshold=tfma.GenericValueThreshold(
                          lower_bound={'value': 0.5}),
                      change_threshold=tfma.GenericChangeThreshold(
                          direction=tfma.MetricDirection.HIGHER_IS_BETTER,
                          absolute={'value': -1e-2})))
          ])
      ]
  )

  evaluator = Evaluator(
      examples=example_gen.outputs['examples'],
      model=trainer.outputs['model'],
      baseline_model=model_resolver.outputs['model'],
      eval_config=eval_config
  )
  components.append(evaluator)

I will try the ALBERT version! Thanks! 👍 👍

But I want to know if there is a way to allocate GPU machine only for TFX Evaluator component. Since this is a simple personal project, I don't want have multiple k8s GPU nodes. (can I set one node with GPU, and two nodes without GPU?)

from workshops.

rcrowe-google avatar rcrowe-google commented on July 22, 2024

Configuring nodes for specific components is in development now, and should be available soon.
@zhitaoli

from workshops.

deep-diver avatar deep-diver commented on July 22, 2024

@rcrowe-google

Or is there a way to wrap TFX component in @func_to_container_op?

from workshops.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.