|
Hi Reader, Welcome to the PYCAD newsletter, where every week you receive doses of machine learning and computer vision techniques and tools to help you learn how to build AI solutions to empower the most vulnerable members of our society, patients. |
If you try to build a chatbot based on ChatGPT with your own data, you might face a big issue.
Your chatbot may start to spit out some non sensical responses.
For example, if your chatbot is for a support system for clothing, if a user asks the chatbot about food, it might actually answer him!
You definitely don’t want this.
A more reliable behavior would be:
If a user asks about food, say you don’t have information about that topic.
But how can you have that type of control over LLMs?
This is where NeMo Guardrails comes to the picture.
It’s an open-source toolkit for easily adding programmable guardrails to LLM-based conversational systems.
Guardrails (or “rails” for short) are specific ways of controlling the output of a large language model.
For example you can have control over:
In the image below, you see a configuration that controls how your Chatbot should respond to an insult from a user!
More info about NeMo Guardrails can be found here.
In traditional software engineering, you have software compilers.
What’s the equivalent in deep learning engineering?
Well, deep learning compilers!
A deep learning compiler translates high-level code written in deep learning frameworks into optimized lower level hardware specific code to accelerate training and inference.
Deep learning compilers have to work with highly-parallelizable code often accelerated on specialized AI accelerator hardware such as:
To improve performance, a deep learning compiler has to take advantage of hardware specific features such as:
Pytorch-2.0 has a deep learning compiler. You can invoke it using a single line of code:
torch.compile()
This can yield hardware specific, highly optimized Pytorch models! With a single line of code!
A code example can be seen below ↓
Here's a full tutorial on Pytorch deep learning compiler.
Advertise with AIFEE to get your brand in front of hundreds of readers who are eager to start or accelerate their machine learning careers by learning about the latest and greatest in machine learning from: books, courses or online communities.
Many of our readers are also looking for machine learning related jobs.
​
​
👉 Learn how to build AI systems for medical imaging domain by leveraging tools and techniques that I share with you! | 💡 The newsletter is read by people from: Nvidia, Baker Hughes, Harvard, NYU, Columbia University, University of Toronto and more!
Hello Reader, Welcome to another edition of PYCAD newsletter where we cover interesting topics in Machine Learning and Computer Vision applied to Medical Imaging. The goal of this newsletter is to help you stay up-to-date and learn important concepts in this amazing field! I've got some cool insights for you below ↓ Zoom That Works Everywhere If you can’t zoom any pane in your web DICOM viewer, you’re doing extra work for no reason. Think of it like this: when something is small, you bring it...
Hello Reader, Welcome to another edition of PYCAD newsletter where we cover interesting topics in Machine Learning and Computer Vision applied to Medical Imaging. The goal of this newsletter is to help you stay up-to-date and learn important concepts in this amazing field! I've got some cool insights for you below ↓ A Quick Look at Our Volume Measurement Tool One of the tools we’ve been working on is a simple way to estimate 3D volumes directly inside the viewer. You start by drawing a...
Hello Reader, Welcome to another edition of PYCAD newsletter where we cover interesting topics in Machine Learning and Computer Vision applied to Medical Imaging. The goal of this newsletter is to help you stay up-to-date and learn important concepts in this amazing field! I've got some cool insights for you below ↓ How We Build Our DICOM Viewers Using Plugins One thing we focus on when building DICOM viewers is keeping every feature as a separate plugin. This gives the app a clean structure...