# Torch is not supported anymore on the MacOS Intel

**URL:** <https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000>\
**Category:** Claude Code: A Highly Agentic Coding Assistant\
**Created:** [August 29, 2025, 2:51pm UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000 "2025-08-29T14:51:05Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![paolo.capitelli](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@paolo.capitelli](https://community.deeplearning.ai/u/paolo.capitelli)\
**Post date:** [August 29, 2025, 2:51pm UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000/1 "2025-08-29T14:51:05Z")

</div>

I have downloaded from github the sources for the first lesson of this course, I have installed uv and I followed the instructions on how to start up the application. Unfortunately I have discovered that torch is not available for MacOS Intel anymore.

Is there a way to fix this problem?

---

<div class="post-metadata">

**Author:** ![c0d3junkie](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/c0d3junkie/32/117133_2.png) [@c0d3junkie](https://community.deeplearning.ai/u/c0d3junkie)\
**Post date:** [August 30, 2025, 12:45pm UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000/2 "2025-08-30T12:45:18Z")

</div>

Hi @paolo.capitelli ,

Please see the answer from @Jeffrey_Risberg below. My answer below is not correct. Please disregard.

Have fun!

---

<div class="post-metadata">

**Author:** ![Jeffrey\_Risberg](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/jeffrey_risberg/32/69855_2.png) [@Jeffrey\_Risberg](https://community.deeplearning.ai/u/Jeffrey_Risberg)\
**Post date:** [August 31, 2025, 7:57pm UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000/3 "2025-08-31T19:57:06Z")

</div>

I have the same problem. Can you be more specific about changing to pytorch?

---

<div class="post-metadata">

**Author:** ![paolo.capitelli](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@paolo.capitelli](https://community.deeplearning.ai/u/paolo.capitelli)\
**Post date:** [September 1, 2025, 10:23am UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000/4 "2025-09-01T10:23:27Z")

</div>

Thank you @c0d3junkie for your help.

Once I have installed pytorch do you know how I should I let the demo for the first lesson of this course work properly?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![Jeffrey\_Risberg](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/jeffrey_risberg/32/69855_2.png) [@Jeffrey\_Risberg](https://community.deeplearning.ai/u/Jeffrey_Risberg)\
**Post date:** [September 2, 2025, 12:53am UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000/5 "2025-09-02T00:53:11Z")

</div>

I have created a solution to the problem of getting the app to run on MacOS 14, Intel chip

I checked the dependencies that were causing torch to be needed. This was in sentencetransformers.

The sentencetransformers lib is only used as the embedding model for the vector database. So I took out sentencetransformers, and used OpenAI instead.

**The changes are in vector\_store.py, which now looks like:**

import chromadb  
from chromadb.config import Settings  
from typing import List, Dict, Any, Optional  
from dataclasses import dataclass  
from models import Course, CourseChunk  
from chromadb.utils.embedding\_functions import OpenAIEmbeddingFunction

@dataclass  
class SearchResults:  
“”“Container for search results with metadata”“”  
documents: List[str]  
metadata: List[Dict[str, Any]]  
distances: List[float]  
error: Optional[str] = None

```
@classmethod
def from_chroma(cls, chroma_results: Dict) -> 'SearchResults':
    """Create SearchResults from ChromaDB query results"""
    return cls(
        documents=chroma_results\['documents'\]\[0\] if chroma_results\['documents'\] else \[\],
        metadata=chroma_results\['metadatas'\]\[0\] if chroma_results\['metadatas'\] else \[\],
        distances=chroma_results\['distances'\]\[0\] if chroma_results\['distances'\] else \[\]
    )

@classmethod
def empty(cls, error_msg: str) -> 'SearchResults':
    """Create empty results with error message"""
    return cls(documents=\[\], metadata=\[\], distances=\[\], error=error_msg)

def is_empty(self) -> bool:
    """Check if results are empty"""
    return len(self.documents) == 0

```

class VectorStore:  
“”“Vector storage using ChromaDB for course content and metadata”“”

```
def \__init_\_(self, openai_api_key: str, chroma_path: str, max_results: int = 5):
    self.max_results = max_results
    # Initialize ChromaDB client
    self.client = chromadb.PersistentClient(
        path=chroma_path,
        settings=Settings(anonymized_telemetry=False)
    )

    self.embedding_function = OpenAIEmbeddingFunction(
        api_key=openai_api_key,
        model_name="text-embedding-3-small"
    )

    # Create collections for different types of data
    self.course_catalog = self.\_create_collection("course_catalog") # Course titles/instructors
    self.course_content = self.\_create_collection("course_content") # Actual course material

```

**And the requirements specified in pyproject.py are now:**

project

name = “starting-codebase”  
version = “0.1.0”  
description = “Add your description here”  
readme = “README.md”  
requires-python = “\>=3.13”  
dependencies = [  
“chromadb==1.0.15”,  
“anthropic”,  
“openai”,  
“fastapi==0.116.1”,  
“uvicorn==0.35.0”,  
“python-multipart==0.0.20”,  
“python-dotenv==1.1.1”  
]

* * *

-

You will need an openAI\_API\_KEY

Now the app is running for me, and I am proceeding with the course.

---

<div class="post-metadata">

**Author:** ![paolo.capitelli](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@paolo.capitelli](https://community.deeplearning.ai/u/paolo.capitelli)\
**Post date:** [September 2, 2025, 4:23pm UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000/6 "2025-09-02T16:23:32Z")

</div>

Thank you very much for the effort in solving this problem.

I am quite newbie with python but I it seems to me that the method _\_create\_collection_ is missing in your code. In fact I get an error message when I launch the ./run.sh script.

Thank you for your help

---

<div class="post-metadata">

**Author:** ![paolo.capitelli](https://avatars.discourse-cdn.com/v4/letter/p/6de8d8/32.png) [@paolo.capitelli](https://community.deeplearning.ai/u/paolo.capitelli)\
**Post date:** [September 2, 2025, 4:40pm UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000/7 "2025-09-02T16:40:38Z")

</div>

Ops sorry. I think I understood my mistake

---

<div class="post-metadata">

**Author:** ![ai\_curious](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/ai_curious/32/128003_2.png) [@ai\_curious](https://community.deeplearning.ai/u/ai_curious)\
**Post date:** [September 3, 2025, 11:54am UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000/8 "2025-09-03T11:54:36Z")

</div>

The issue isn’t a question of torch vs PyTorch. The issue is the PyTorch no longer supports Intel-based Apple hardware and OS. See

> **[PyTorch macOS x86 builds deprecation starting January 2024](https://dev-discuss.pytorch.org/t/pytorch-macos-x86-builds-deprecation-starting-january-2024/1690)**
>
> Dear Team, As new Intel Mac’s are no longer produced and with time fewer will remain in use, we will be stopping testing and eventually building macOS x86\_64 binaries after the release 2.2.0 is complete (mid January 2024). We will not be...

---

<div class="post-metadata">

**Author:** ![c0d3junkie](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/c0d3junkie/32/117133_2.png) [@c0d3junkie](https://community.deeplearning.ai/u/c0d3junkie)\
**Post date:** [September 3, 2025, 3:17pm UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000/9 "2025-09-03T15:17:26Z")

</div>

Yes, I figured that out when I saw the reply from @Jeffrey_Risberg, I remember having to go through the logs for the sentencetransformers lib and trying to figure that out. Sorry to spread incorrect info. ☹

---

<div class="post-metadata">

**Author:** ![lesly.zerna](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/lesly.zerna/32/47465_2.png) [@lesly.zerna](https://community.deeplearning.ai/u/lesly.zerna)\
**Post date:** [January 28, 2026, 9:09pm UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000/10 "2026-01-28T21:09:17Z")

</div>

Thank you so much for the support Jeffrey!

---

<div class="post-metadata">

**Author:** ![lesly.zerna](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/lesly.zerna/32/47465_2.png) [@lesly.zerna](https://community.deeplearning.ai/u/lesly.zerna)\
**Post date:** [January 28, 2026, 9:09pm UTC](https://community.deeplearning.ai/t/torch-is-not-supported-anymore-on-the-macos-intel/878000/11 "2026-01-28T21:09:21Z")

</div>


