6 karma · joined Jun 27, 2021 (5y ago) · 10 submissions
comment 3y ago · link · parent
You can think of the Dynamic GPU Partitioning as a cluster autoscaler for GPUs. Instead of scaling up the number of nodes and GPUs, it dynamically partitions them into smaller “GPU slices”. This ensures that each workload only uses the GPU resources it actually needs, resulting in spare GPU capacity that could be used for other workloads. To partition GPUs, nos leverages Nvidia MIG, as well as the less known MPS, finally making them dynamic.
On Towards Data Science you can find a tutorial on how to use the Dynamic GPU Partitioning https://towardsdatascience.com/dynamic-mig-partitioning-in-k...
I also wrote a review of the pros and cons of different technologies for sharing resources among workloads in Kubernetes: time-slicing, MIG, and MPS https://docs.nebuly.com/nos/dynamic-gpu-partitioning/partiti...
In addition, this open source also has other components to increase GPU utilization even more. It’s called Elastic Resource Quota management: it allows to increase the number of Pods running on the cluster by allowing teams (namespaces) to borrow quotas of reserved resources from other teams as long as they are not using them. It’s better described in nos documentation https://docs.nebuly.com/nos/overview/
Let me know your thoughts on the project!
comment 3y ago · link · parent
You can think of the Dynamic GPU Partitioning as a cluster autoscaler for GPUs. Instead of scaling up the number of nodes and GPUs, it dynamically partitions them into smaller “GPU slices”. This ensures that each workload only uses the GPU resources it actually needs, resulting in spare GPU capacity that could be used for other workloads. To partition GPUs, nos leverages Nvidia MIG, as well as the less known MPS, finally making them dynamic.
On Towards Data Science you can find a tutorial on how to use the Dynamic GPU Partitioning https://towardsdatascience.com/dynamic-mig-partitioning-in-k...
I also wrote a review of the pros and cons of different technologies for sharing resources among workloads in Kubernetes: time-slicing, MIG, and MPS https://docs.nebuly.com/nos/dynamic-gpu-partitioning/partiti...
In addition, this open source also has other components to increase GPU utilization even more. It’s called Elastic Resource Quota management: it allows to increase the number of Pods running on the cluster by allowing teams (namespaces) to borrow quotas of reserved resources from other teams as long as they are not using them. It’s better described in nos documentation https://docs.nebuly.com/nos/overview/
Let me know your thoughts on the project!
comment 3y ago · link · parent
He also wrote an interesting thread on the memory usage of this algo versus backprop https://twitter.com/diegofiori_/status/1605242573311709184?s...
comment 3y ago · link · parent
Congratulations to Ultralytics on the release of its new model! I was excited to try it out and see how it performs. I was particularly interested in figuring out how to optimize it to make it even faster in inference. I built a notebook to experiment with different optimization techniques using Speedster.
https://github.com/nebuly-ai/nebullvm/blob/main/notebooks/sp...
Here are some takeaways that I think are worth sharing:
1⃣ On both GPUs and CPUs, the compilers with the smallest latency are Nvidia's TensorRT and Intel's OpenVino. This is not surprising, as both hardware manufacturers have heavily invested in optimizing performance for standard computer vision operations.
2⃣ YOLOv8 is primarily composed of convolutional layers (and bottleneck layers, which are also made of convolutions). Both Intel and Nvidia have developed highly optimized kernels for these types of operations, which can be leveraged to achieve optimal performance on their hardware.
3⃣ ONNXRuntime, however, seems to perform poorly on CPUs, particularly when using int8 and fp16 precision. -> For int-8 conversion of the weights, there is an extra computational overhead due to the need to convert the weights back to fp32 before computing the output of the layers. -> The reason for this poor performance on half precision is that ONNXRuntime on CPUs does not include (like PyTorch) FP16 kernels for many operations, resulting in activations and outputs requiring conversion from fp16 to fp32 before operations that don't support half-precision can be computed.
4⃣ On Nvidia GPUs, ONNXRuntime with dynamic int-8 precision (only weights are quantized) also suffers from an overhead due to the conversion from int8 to fp32 when computing different operations. In contrast, TensorRT has highly optimized kernels for static quantization operations (int8 weights and int8 activations) which provide the fastest performance on Nvidia 3090Ti GPUs.
5.
Top Machine Learning and AI Conferences in 2023(nebuly.com ↗)
3 points · by emilecourth · 3y ago · discuss
6.
Trending on GitHub/Python: Geoffrey Hintons ForwardForward Algorithm Open Source(github.com ↗)
2 points · by emilecourth · 3y ago · discuss