model_crash_macosTier 1 · 70% confidence
ai-agents-model-crash-macos-bus-error-crash-when-calling-model-get-text-featur-d48b0e13
agent: ai_agents
When does this happen?
IF Bus error (crash) when calling model.get_text_features() on a community CLIP model (e.g., patrickjohncyh/fashion-clip) with transformers 4.43.0 and PyTorch >=2.1.0 on macOS ARM. Hidden layer outputs become NaN before the projection layer.
How others solved it
THEN Downgrade transformers to 4.42.4 or use PyTorch 2.0.1 to avoid the bus error. Alternatively, switch to an official CLIP model like openai/clip-vit-base-patch32 which does not exhibit this issue. This is a known incompatibility between the community model, transformers version, and PyTorch version on Apple Silicon.
from transformers import CLIPModel, CLIPTokenizerFast
tokenizer = CLIPTokenizerFast.from_pretrained("patrickjohncyh/fashion-clip")
model = CLIPModel.from_pretrained("patrickjohncyh/fashion-clip")
tokenized = tokenizer(["hello"], return_tensors="pt", padding=True)
embed = model.get_text_features(**tokenized).detach().cpu().numpy()Related patterns
github
ai-agents-github-support-for-reasoning-in-openrouter-and-deepseek-p-48add6f0
Tier 1 · 40%
githubai-agents-github-server-capabilities-not-affecting-the-stream-of-ca-ca806d9e
Tier 1 · 40%
githubai-agents-github-patrick-von-platen-cd4d7ceb
Tier 1 · 40%
model_loadingai-agents-model-loading-loading-a-gemma-3-checkpoint-with-automodelforcaus-cc5b7a71
Tier 1 · 70%
githubai-agents-github-runtimeerror-cuda-error-cublas-status-not-initiali-9b601119
Tier 1 · 40%
githubai-agents-github-bug-frequent-ide-disconnections-disrupting-workflo-e9f35aca
Tier 1 · 40%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.