enableAppleAI
Enable Apple Intelligence on Macs sold in Mainland China with SIP enabled, tested on MacOS 15.4.1+ and 26 beta
Top Related Projects
Stable Diffusion with Core ML on Apple Silicon
🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch and FLAX.
High-Resolution Image Synthesis with Latent Diffusion Models
Stable Diffusion web UI
Quick Overview
EnableAppleAI is a GitHub repository that appears to be empty or non-existent. As of the current date, there is no content, code, or documentation available in this repository. The name suggests it might be intended for a project related to enabling or integrating Apple's AI technologies, but without any actual content, it's impossible to provide a meaningful description.
Pros
- The repository name suggests a potentially interesting focus on Apple AI technologies
- Could be a placeholder for future development in an emerging tech area
Cons
- Repository is currently empty with no code or documentation
- Lack of information makes it impossible to assess the project's goals or progress
- No indication of when or if content will be added
- Potential users cannot benefit from or contribute to the project in its current state
As this repository is empty and not a code library, we'll skip the code examples and getting started instructions sections.
Competitor Comparisons
Stable Diffusion with Core ML on Apple Silicon
Pros of ml-stable-diffusion
- More comprehensive and actively maintained project
- Focuses on implementing Stable Diffusion models on Apple Silicon
- Provides optimized performance for Apple devices
Cons of ml-stable-diffusion
- Requires more setup and configuration
- Limited to Apple devices and ecosystems
- May have a steeper learning curve for beginners
Code Comparison
enableAppleAI:
import torch
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
pipe = pipe.to("mps")
ml-stable-diffusion:
import CoreML
let model = try MLModel(contentsOf: modelURL)
let input = MLFeatureProvider(dictionary: ["input": inputImage])
let output = try model.prediction(from: input)
The enableAppleAI repository appears to be a simpler implementation using PyTorch, while ml-stable-diffusion uses Swift and CoreML for native Apple integration. ml-stable-diffusion offers more optimized performance for Apple devices but requires more setup. enableAppleAI might be easier to get started with but may not fully leverage Apple-specific optimizations.
🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch and FLAX.
Pros of diffusers
- Extensive library of pre-trained diffusion models for various tasks
- Well-documented API with easy-to-use interfaces
- Active community and frequent updates
Cons of diffusers
- Larger resource requirements due to complex models
- Steeper learning curve for beginners
- May be overkill for simple AI tasks
Code Comparison
enableAppleAI:
let model = try VNCoreMLModel(for: YOLOv3().model)
let request = VNCoreMLRequest(model: model)
try? VNImageRequestHandler(ciImage: image).perform([request])
diffusers:
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
image = pipe("A photo of a cat").images[0]
Summary
diffusers offers a comprehensive suite of diffusion models with extensive documentation and community support, making it suitable for complex AI tasks. However, it may require more resources and have a steeper learning curve compared to enableAppleAI. The latter appears more focused on integrating Apple's AI capabilities, potentially offering a simpler approach for iOS-specific development. The code comparison shows diffusers using a high-level API for image generation, while enableAppleAI demonstrates integration with Apple's Vision framework.
High-Resolution Image Synthesis with Latent Diffusion Models
Pros of stablediffusion
- More comprehensive and actively maintained project with frequent updates
- Larger community support and contributions
- Advanced features for image generation and manipulation
Cons of stablediffusion
- More complex setup and installation process
- Higher computational requirements for running the model
- Steeper learning curve for beginners
Code Comparison
enableAppleAI:
import coremltools as ct
mlmodel = ct.convert(model, source='pytorch')
mlmodel.save('model.mlpackage')
stablediffusion:
from diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5")
image = pipe(prompt="a photo of an astronaut riding a horse on mars").images[0]
The enableAppleAI repository focuses on converting AI models for use with Apple's Core ML framework, making it easier to run on Apple devices. In contrast, stablediffusion is a more comprehensive project for generating and manipulating images using advanced AI techniques. While enableAppleAI is more specialized for Apple ecosystem integration, stablediffusion offers a wider range of features and flexibility for image generation tasks across various platforms.
Stable Diffusion web UI
Pros of stable-diffusion-webui
- More comprehensive and feature-rich UI for Stable Diffusion
- Extensive community support and active development
- Wide range of extensions and plugins available
Cons of stable-diffusion-webui
- Requires more setup and configuration
- Higher system requirements for optimal performance
- Steeper learning curve for beginners
Code Comparison
enableAppleAI:
import coremltools as ct
mlmodel = ct.convert(
"model.onnx",
convert_to="mlprogram",
minimum_deployment_target=ct.target.iOS16
)
stable-diffusion-webui:
import modules.scripts
from modules import script_callbacks
def on_app_started(demo, app):
# Custom initialization code
script_callbacks.on_app_started(on_app_started)
The code snippets highlight the different focus areas of the two projects. enableAppleAI is centered around converting models for Apple devices, while stable-diffusion-webui provides a framework for extending the web interface functionality.
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
enableAppleAI
ä¸ç§å¨MacOSä¸ï¼ç®åæµè¯MacOS 15.4.1+å26 betaåå¯ï¼ï¼æ éé¿æè¿è¡åå°æå¡ï¼ä¹æ éé¿æç¦ç¨SIPï¼å³å¯æ°¸ä¹ 稳å®å¼å¯ä¸å½éå®Mac设å¤ä¸Apple AIçæ¹æ³ã
2.0çæ¬å·²ä¸çº¿ï¼æ¯æç¸åçâæ¶é¤ï¼Clean Upï¼âåè½å¼å¯ï¼
TODOï¼ ç®åå°ä¸ç¥éè½å¦å®ç°çåè½ï¼
- ç»å½éAIå¯ç¨åºApple IDè´¦å·ï¼å¦ä¸å½åºï¼æ¶
- å¤ç½®ç¡¬çå®è£ macOSæ¶
- ç³»ç»è¯è¨ä¸Siriè¯è¨ä¸ä¸è´æ¶
å¨/private/var/db/eligibilityd/eligibility.plist
è¿ä¸ªç³»ç»æä»¶ä¸ï¼æç¸å
³ç代ç ï¼ä½ç®åè¿ä¸ç¥éè¦æä¹æ¹ï¼æè½å»æè¿äºéå¶ã
ç±äºæ¬äººæ²¡æç¸å ³è®¾å¤/è´¦å·ï¼æ¬¢è¿ä½ æ ¹æ®ç°æä»£ç è¿è¡å°è¯ï¼å¹¶åé¦ä½ çæµè¯ç»æã
å·¥ä½åçæ¦è¿°
è¯¥èæ¬çä¸»è¦ææ³æ¯éè¿ä»¥ä¸æ¥éª¤å°è¯ç»è¿ Apple 对 Apple æºè½çå¯ç¨æ£æ¥ï¼
- ä¸è½½å¹¶æ§è¡ä¸ä¸ªå¤é¨çç¬¬ä¸æ¹èæ¬ï¼è¯¥èæ¬ä¼ææ¶æ³¨å ¥eligibiltydï¼ä½¿å ¶åç³»ç»æ°æ®åºè¾åºè¯¥æºåæ¯æAIçä¿¡æ¯ï¼å ·ä½åè½è¯·åèè¯¥èæ¬çæºä»åºï¼ã
- ä¿®æ¹
/private/var/db/eligibilityd/eligibility.plist
è¿ä¸ªç³»ç»æä»¶ï¼ç¹å«æ¯è°æ´å ¶ä¸å ³äºè®¾å¤åºåç (OS_ELIGIBILITY_INPUT_DEVICE_REGION_CODE) åå¤é¨å¯å¨ç (OS_ELIGIBILITY_INPUT_EXTERNAL_BOOT_DRIVE) çæ£æ¥å¼ï¼ç¦æ¢ç³»ç»ç¨è¿äºåæ°æ¥ä½ä¸ºåè½å¼å¯çåææ¡ä»¶ã - éè¿ä¿®æ¹æä»¶æéå设置
uchg
(immutable) æ è®°ï¼éå®ä¿®æ¹åçæ°æ®åºæä»¶ç¶æã
åç½®æ¡ä»¶
- ä¸å°è¿è¡å ¼å®¹ macOS çæ¬ç Mac (M1æä»¥ä¸CPUï¼macOS 15.1æä»¥ä¸çæ¬)ã
- 管çåæéï¼å ä¸ºèæ¬ä½¿ç¨
sudo
æ§è¡ç¹æå½ä»¤ã - ç»å½iCloudçApple IDä¸è½æ¯ä¸å½åºï¼ç¾åºè¯å®æ²¡é®é¢ï¼å ¶ä»åºæªç¥ï¼ã
- ç³»ç»å°åºè®¾ç½®ä¸ºâç¾å½âï¼ç³»ç»è¯è¨ãSiriè¯è¨å设置为
ç®ä½ä¸æï¼æ®éè¯ï¼/ä¸å½
æEnglish(USA)
ââè®¾ç½®ä¸ºå ¶ä»ä¸æ¯æApple AIçåºåä¼å¯¼è´å¼å¯å¤±è´¥ã - 稳å®çäºèç½è¿æ¥ä»¥ä¸è½½èæ¬ã
- SIP (System Integrity Protection) å·²ç¦ç¨ãï¼ç ´è§£å®æåå¯éæ°å¼å¯ï¼ä¸å½±åAIåè½ï¼
æ§è¡æ¥éª¤
è¯·ä¸¥æ ¼æç §ä»¥ä¸æ¥éª¤æä½ï¼
æ¥éª¤ 1: ç¦ç¨ System Integrity Protection (SIP)
妿 SIP å·²ç»ç¦ç¨ï¼å¯ä»¥è·³è¿æ¤æ¥éª¤ã妿æªç¦ç¨ï¼æ¨å¿ é¡»æå¨ç¦ç¨å®ï¼
- éå¯ Macã
- å¨ Mac å¯å¨æ¶ï¼é¿æå¼æºé®ï¼ç´å°è¿å ¥ macOS æ¢å¤æ¨¡å¼ï¼éä¸ä½ å¯è½éè¦è¾å ¥å 次å¯ç ã
- å¨å±å¹é¡¶é¨çèåæ ä¸ï¼éæ© å®ç¨å·¥å · (Utilities) > **ç»ç«¯ (Terminal)**ã
- å¨ç»ç«¯çªå£ä¸ï¼è¾å
¥ä»¥ä¸å½ä»¤å¹¶æå车ï¼
csrutil disable
- æyé®ç¡®è®¤ï¼ä¹åæ¨ä¼çå°ä¸æ¡ SIP å·²ç¦ç¨çæ¶æ¯ã
- å¨ç»ç«¯ä¸ï¼è¾å
¥
reboot
å¹¶æåè½¦ï¼æè ä» Apple èåä¸éæ© éå¯ (Restart) éåºæ¢å¤æ¨¡å¼å¹¶å¯å¨ Macã
æ¥éª¤ 2: ä¸è½½å¹¶è¿è¡èæ¬
åå½ä»¤å¿«éæ§è¡æ¹æ³:
妿æ¨å®å ¨ä¿¡ä»»æ¬èæ¬ï¼å¯ä»¥ä½¿ç¨ä»¥ä¸åå½ä»¤ç´æ¥æ§è¡ï¼
ææ°2.11èæ¬ï¼æ¨èå å°è¯ï¼ï¼
curl -sL https://raw.githubusercontent.com/kanshurichard/enableAppleAI/main/enable_ai.sh | bash
妿æ¬çéå°é®é¢ï¼è¯·æ¨å»æIssueãåæ¶å¯ä»¥å°è¯2.0æ§çï¼
curl -sL https://raw.githubusercontent.com/kanshurichard/enableAppleAI/main/enable_ai_old.sh | bash
妿å¨å½å 访é®å°é¾ï¼è¯·å°è¯ä»¥ä¸å½å å éå°åï¼
curl -sL https://cdn.jsdelivr.net/gh/kanshurichard/enableAppleAI@main/enable_ai.sh | bash
æå¨æ§è¡èæ¬:
- æå¼ ç»ç«¯ (Terminal) åºç¨ç¨åºã
- 使ç¨
curl
ä¸è½½èæ¬æä»¶å°å½åç®å½ï¼curl -O https://raw.githubusercontent.com/kanshurichard/enableAppleAI/main/enable_ai.sh
- 审æ¥èæ¬å
å®¹ï¼ ä½¿ç¨ææ¬ç¼è¾å¨æå½ä»¤è¡å·¥å
·ï¼å¦
cat enable_ai.sh
ï¼ä»ç»é 读ä¸è½½çenable_ai.sh
æä»¶ï¼ç¡®ä¿æ¨çè§£å®å°æ§è¡çæä½ã - èµäºèæ¬æ§è¡æéï¼
chmod +x enable_ai.sh
- æ§è¡èæ¬ï¼
./enable_ai.sh
æ¥éª¤ 3: æç §èæ¬æç¤ºæä½
èæ¬è¿è¡è¿ç¨ä¸ä¼è¾åºå½åæ§è¡çæ¥éª¤ï¼å¹¶å¯è½å¨æä¸ªé¶æ®µæåï¼æç¤ºæ¨å»âç³»ç»è®¾ç½®â䏿£æ¥ Apple æºè½æ¯å¦å·²ç»æ¾ç¤ºä¸ºå¼å¯ç¶æã
- 妿 Apple æºè½å·²ç»æ¾ç¤ºï¼è¯·æ Y é®ç»§ç»èæ¬çå©ä½é¨åã
- 妿 Apple æºè½æªæ¾ç¤ºä¸ºå¼å¯ï¼è¯·æ N é®ï¼èæ¬ä¼èªå¨æ¢å¤ææå·²æçä¿®æ¹ãä¹åæ¨å¯ä»¥éè¯ä¸æ¬¡ï¼ææ¥è¿éæäº¤Issuesã
æ¥éª¤ 4: éå¯å¹¶æç»ç¡®è®¤
èæ¬å®ææ§è¡åï¼
- é坿¨ç Macã
- éå¯åï¼å次åå¾ ç³»ç»è®¾ç½® (System Settings) > éç¨ (General) > Apple æºè½ (Apple Intelligence) æ£æ¥åè½ç¶æã
- 妿 Apple æºè½ä»ä¸ºå¼å¯ç¶æï¼å¹¶ä¸æ¨å¸ææ¢å¤ç³»ç»çå®å
¨æ§ï¼**强ç建议**æ¨å次è¿å
¥æ¢å¤æ¨¡å¼ï¼æ§è¡
csrutil enable
å½ä»¤éæ°å¯ç¨ SIPã
æ éæé¤ä¸åé¦
- å¦æèæ¬æ§è¡è¿ç¨ä¸éå°é误ï¼è¯·æ£æ¥ç»ç«¯è¾åºçé误信æ¯ã
- 妿æç §æ¥éª¤æ§è¡å Apple æºè½æªè½æåå¯ç¨ï¼æè åºç°å ¶ä»å¼å¸¸ï¼æ¨ä¹å¯ä»¥å¨æ¬é¡¹ç®ç GitHub Issues ä¸æäº¤é®é¢ã
常è§é®é¢
é®ï¼å¦ä½å¸è½½ï¼
çï¼åªè¦å¨å
³éSIPåï¼éæ°è¿è¡ä¸éèæ¬ï¼å°äºé®ä½ æ¯å¦çå°AIåè½åºç°çé£ä¸æ¥ï¼æâNâéå¦ï¼èæ¬å°±ä¼èªå¨è§£éææå·²é宿件ã忬¡éå¯çµèåï¼ç³»ç»å°±ä¼èªå¨ç¨åå§ç³»ç»æä»¶æ¿ä»£ä¿®æ¹åçæä»¶ï¼ç¸å½äºå¸è½½ææå¯¹ç³»ç»çæ´æ¹ãæ¤æ¶å¯ä»¥éæ°å¼å¯SIPã
é®ï¼è½å¦å¨ç»å½å½åºè´¦å·ä¸ºiCloudæ¶å¼å¯AIï¼
çï¼ç®åè¿ä¸å¯ä»¥ï¼ä½æäººè¿è¡äºç¸å
³å°è¯ï¼å¹¶ï¼å¯è½ï¼æ¾å°äºä¸ç§åéçæ¹æ³ã
é®ï¼æ§è¡eligibilitydç¸å
³ç注å
¥ä»£ç æ¶æ¥éï¼æä¹åï¼
çï¼è¿ä¸ªé®é¢å·²æå¤ä¸ªæ¥åï¼åºæ¬é½æ¯ä¹åè¿è¡è¿å
¶ä»å¼å¯AIç代ç ï¼æ¯å¦ XcodeLLMEligible ãæçæµç±äºè¯¥é¡¹ç®ä»£ç ä¼å°è¯ç¨èªå¶ç¨åºæ¿ä»£ç³»ç»èªå¸¦çeligibilitydï¼å¯¼è´ç°å¨ä»£ç æ æ³æ³¨å
¥çæ£çeligibilitydã请å°è¯ç¨åç§æ¹å¼å¸è½½ä¹åç ´è§£æ®ççå
容ï¼è¿ä¸è¡çè¯å¯è½åªè½éè£
ç³»ç»äºã
é®ï¼å¼å¯AIåï¼Siriè°ç¨çä»ç¶æ¯ç¾åº¦ç¾ç§è¿ç±»å½å
å·¥å
·ï¼ChatGPT乿 æ³æ£å¸¸è°ç¨ï¼æä¹åï¼
çï¼Siriå¹¶ä¸ä½¿ç¨æºå代ç ï¼èæ¯ä½¿ç¨ä½ çIPå°åï¼å¤ææ¯å¦è°ç¨å½å
æå¡ï¼å¦ç¾åº¦ï¼ï¼å³ä½¿å¨å¤çæºåä¸ï¼ä¹æ¯è¿æ ·çã请èèå°ææç¸å
³URLæ¾å
¥ä»£çååï¼å¦éæ´å¤å¸®å©ï¼å¯åèï¼https://nsringo.github.ioã
é®ï¼å¾ä¹åï¼Image Playgroundï¼æ æ³å建å¾ççåå ï¼
çï¼å¾ä¹åç®å䏿¯æä¸æè¯è¨ä¸å建å¾çï¼è¯·å°ç³»ç»è¯è¨æ¹ä¸ºè±è¯ï¼ç¾å½ï¼ï¼å³å¯æ£å¸¸ä½¿ç¨ã
é®ï¼æ¯å¦è½å¼å¯ç¹ä½ä¸æçAIï¼
çï¼ä¸å¯ä»¥ï¼å 为Appleå°ç®åï¼2025.5ï¼ä¸ºæ¢é½æ²¡ææ¯æç¹ä½ä¸æAIï¼å èä½ æ æ³ä¸è½½å°ç¸å
³è¯è¨æä»¶ã为å¼å¯AIï¼è¯·ç¡®ä¿ç³»ç»ç¸å
³è¯è¨è®¾ç½®ä¸ºç®ä½ä¸æï¼æå
¶ä»åå°æ¯æçè¯è¨ï¼ã
Top Related Projects
Stable Diffusion with Core ML on Apple Silicon
🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch and FLAX.
High-Resolution Image Synthesis with Latent Diffusion Models
Stable Diffusion web UI
Convert
designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot