Premium Only Content
 
			Using GPT-OSS Models with Hugging Face API
💻 Launch your websites with Cloudways — managed cloud hosting made easy:
https://go.watsontechworld.com/cloudways
---
Learn how to use OpenAI's new open-source models, GPT-OSS-120B and GPT-OSS-20B, with the Hugging Face API in Python. This tutorial covers setting up your API key, running queries, and comparing outputs between the two models. Full code provided!
Subscribe / follow for more!
---
Code for video 👇
https://github.com/sinocelt/100daysofcode-2025-07/blob/main/gpt-oss-huggingface-api.ipynb
https://github.com/sinocelt/100daysofcode-2025-07/blob/main/code_for_teaching_hugging_face_with_gpt_oss_models.py
---
Our website: https://watsontechworld.com
---
00:00 Intro to GPT-OSS models
01:30 Intro to the code for the video
02:24 Discussing steps to use OSS models with Hugging Face p1
04:42 Getting Hugging Face code to use models
06:07 Discussing steps to use OSS models with Hugging Face p2
06:24 Getting an API key / access token
07:22 Adding Hugging Face token to Jupyter notebook code
08:36 Discussing steps to use OSS models with Hugging Face p3
08:58 Going through Jupyter Notebook code p1
09:54 Discussing getting exact model name on Hugging Face API
10:46 Going through Jupyter Notebook code p2
11:55 Photosynthesis question with gpt-oss-120b
13:22 Photosynthesis question output with gpt-oss-120b
15:16 Photosynthesis question with gpt-oss-20b
16:02 Photosynthesis question output with gpt-oss-20b
17:42 Going through Jupyter Notebook code p3 - reading in prompt from a file
18:25 Golf question with gpt-oss-20b
19:12 Golf question output with gpt-oss-20b
20:45 Golf question with gpt-oss-120b
21:02 Golf question output with gpt-oss-120b
22:55 Using Hugging Face key in an environment variable
24:28 Portuguese learning question with gpt-oss-20b
24:55 Portuguese learning question output with gpt-oss-20b
26:45 Portuguese learning question with gpt-oss-120b
26:57 Portuguese learning question output with gpt-oss-120b
30:13 Using the Python file
31:20 Copying Hugging Face API key into Python file
32:31 Data science question with gpt-oss-20b with Python file
34:02 Data science question output with gpt-oss-20b with Python file
36:39 Data science question with gpt-oss-120b with Python file
36:57 Data science question output with gpt-oss-120b with Python file
38:40 Review of how to use models with Hugging Face API
40:45 Review of Jupyter Notebook code p1
41:47 Review of setting prompt directly in Jupyter Notebook file or via a text file
43:02 Code that sends prompt to API
43:10 Discussing gpt-oss-20b vs gpt-oss-120b
43:37 Review of gpt-oss models on Hugging Face
44:08 Review of Jupyter Notebook code p2 - how to render the output well
45:21 Conclusion
---
#GPTOSS #HuggingFace #OpenAI #Python #HuggingFaceAPI #AI #OpenAIModels #OpenSource #OpenSourceAI #AITutorial #PythonTutorial #MachineLearning #LLM
- 	
				 LIVE LIVEDr Disrespect5 hours ago🔴LIVE - DR DISRESPECT - ARC RAIDERS - DANGEROUS ADVENTURES (LEVEL 12)1,449 watching
- 	
				 14:15 14:15Tactical Advisor5 days agoEverything You Need To Know About PSA Mixtape Vol 1. (FIRST LOOK)2.82K3
- 	
				 LIVE LIVEJeff Ahern1 hour agoFriday Freak out with Jeff Ahern113 watching
- 	
				 14:54 14:54The Kevin Trudeau Show Limitless2 days agoThe Hidden Force Running Your Life54.4K8
- 	
				 1:03:55 1:03:55Sean Unpaved3 hours agoRavens' Resurrection Night: Lamar Buries Miami, NFL/CFB Spooky HC Shifts, & Kalshi's Week 9/10 Odds!26.5K
- 	
				 2:16:48 2:16:48Film Threat1 day agoHALLOWEEN HORROR + BACK TO THE FUTURE RERELEASE + MORE REVIEWS | Film Threat Livecast7.99K
- 	
				 1:21:16 1:21:16Steven Crowder6 hours ago10th Annual Halloween Spooktacular: Reacting to the 69 Gayest Horror Movies of All Time258K164
- 	
				 57:39 57:39The Rubin Report4 hours agoKamala Gets Visibly Angry as Her Disaster Interview Ends Her 2028 Election Chances49.1K61
- 	
				 LIVE LIVELFA TV18 hours agoLIVE & BREAKING NEWS! | FRIDAY 10/31/251,583 watching
- 	
				 1:36:11 1:36:11The Mel K Show4 hours agoHunters Become the Hunted: A Reckoning Is Finally Coming - 10/31/2526.3K15