Programming: Everyday Decision-Making Algorithms
Kühne Logistics University Hamburg - Winter 2025
How do
Large Language
Models work?
Photo by Taylor Vick on Unsplash
Using a trained model is called inference.
Managing context windows is crucial!
If you use free models, be aware that your prompts are going to be used by the providers and are not private. But for learning and experimenting, this should be no issue.
GitHub Copilot is an AI pair programmer that helps you write code faster and with less effort.
Think of it as:
Copilot uses AI trained on billions of lines of public code to suggest completions.
There are alternative like Zed or Cursor, but you can use Copilot for free as student.
When you type on your phone, it suggests the next word.
GitHub Copilot does the same for code:
It’s autocomplete but much better then what you are used to
Benefits you while learning and working with Python:
Especially helpful when you know WHAT you want to do but forget HOW to do it.
Good uses of Copilot
Not so good uses of Copilot
Always understand what Copilot suggests before accepting!
But of course I know you will not do that ;)
Copilot might suggest code that:
Dangerous code can lead to security vulnerabilities, data loss, or other issues. In the context of this lecture it should be no issue, but in companies it can be one!
Your code, your responsibility:
Don’t accept code blindly, especially later if things are more complicated.
GitHub Student Developer Pack gives you free Copilot access!
You’ll need a GitHub account. Create one at github.com if you don’t have one.
.py) and type somethingIf working, you’ll see:
Tab to acceptEsc to rejectTry to get copilot running on your own until next session.
Tutorial V.I - Programming with AI | Dr. Tobias Vlćek | Home