Giter VIP home page Giter VIP logo

Comments (8)

davemssavage avatar davemssavage commented on August 27, 2024

See #16

from ranking.

ramakumar1729 avatar ramakumar1729 commented on August 27, 2024

Hi Dave,

We have run using GPU and CPU versions, but haven't done the kind of benchmarking you have pointed out, which is definitely interesting to know.

The dependency on tensorflow vs tensorflow-gpu occurs in the setup.py file.
The way to support both GPU and CPU versions would be to have tensorflow_ranking and tensorflow_ranking-gpu packages installable via pip, each having a separate setup.py.

from ranking.

nm-narasimha avatar nm-narasimha commented on August 27, 2024

Could you clarify what changes we should do in tensorflow_ranking/tools/pip_package/build_pip_package.sh file for GPU support, along with changes in setup.py?

from ranking.

n3011 avatar n3011 commented on August 27, 2024

@NarasimhaM3101 just change this line https://github.com/tensorflow/ranking/blob/master/tensorflow_ranking/tools/pip_package/setup.py#L35 to tensorflow-gpu >= 1.12.0

from ranking.

ramakumar1729 avatar ramakumar1729 commented on August 27, 2024

Thanks for the fix, Ishant! We are planning to remove the dependency on tensorflow in the package, and ask the user to explicitly install tensorflow (or tensorflow-gpu). This will allow us to maintain one package on PyPI.

from ranking.

ramakumar1729 avatar ramakumar1729 commented on August 27, 2024

The user is expected to install tensorflow or tensorflow-gpu manually before installing tensorflow-ranking.The README is updated to reflect this. Closing this for now. Please feel free to reopen if they are any issues.

from ranking.

iamhere1 avatar iamhere1 commented on August 27, 2024

I installed tensorflow-gpu(v1.13.1) and tensorflow ranking by pip command. But when I run the training process, the GPU is actually not used. The code I used is as following, is there any problem?

config_proto = tf.ConfigProto(log_device_placement=False,
allow_soft_placement=False)
config_proto.gpu_options.per_process_gpu_memory_fraction = 0.6
run_config = tf.estimator.RunConfig(model_dir=config.model_dir,
save_summary_steps=config.log_steps,
save_checkpoints_steps=config.checkpoints_steps,
keep_checkpoint_max=config.keep_checkpoint_max,
session_config=config_proto,
log_step_count_steps=config.log_steps
)
return tf.estimator.Estimator(
model_fn=tfr.model.make_groupwise_ranking_fn(
group_score_fn=make_score_fn(),
group_size=config.group_size,
transform_fn=None,
ranking_head=ranking_head),
config=run_config,
params={'hidden_units': hidden_units_list,
'drop_out': config.drop_out,
'drop_rates': drop_rates_list,
'group_size': config.group_size,
'num_features': config.num_features,
'l2_reg': config.l2_reg,
'batch_norm': config.batch_norm}
)

from ranking.

mulangonando avatar mulangonando commented on August 27, 2024

hi @iamhere1 , did you get any solution to this problem? I have tried to install the library by all means but still, my nvidia-smi command does not list my process id

from ranking.

Related Issues (20)

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.