enableAppleAI
Enable Apple Intelligence on Macs sold in Mainland China with SIP enabled, tested on MacOS 15.4.1+ and 26+
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.
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.
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+å26.1åå¯ï¼ï¼æ éé¿æè¿è¡åå°æå¡ï¼ä¹æ éé¿æç¦ç¨SIPï¼å³å¯æ°¸ä¹ 稳å®å¼å¯ä¸å½éå®Mac设å¤ä¸Apple AIçæ¹æ³ã
Star History
ææ°3.21çæ¬ä»ç»
- æ°å¢â强å¶ä¿®æ¹å°åºä¸ºç¾å½âåè½ï¼é对macOS 26.Xï¼éè¿ä¿®æ¹
countrydé ç½®æä»¶ï¼å³ä½¿è®¾å¤ä½äºä¸å½ï¼ä¹å¯å¼å¯ Siri æ´å ChatGPTãApple News åå½é çè¹æå°å¾ãï¼éé å忝æå°åºçç½ç»ç¯å¢ï¼ã - æ°å¢ iPhone éååè½é¢è¦ï¼éè¦æéï¼å¦ææ¨ä½¿ç¨ iPhone éååè½ï¼å¿ é¡»å¨ä¿®æ¹å½å®¶ä»£ç åå 宿 iPhone ä¸ Mac çé 对ï¼å¦åä¿®æ¹åå¯è½å¯¼è´æ æ³é 对ã
- å¢å äºæ¹æ³2ï¼æ¥èª https://github.com/hyderay/AiOnMac çå¯åï¼ï¼åªéä¿®æ¹plistæä»¶ï¼ä¸åéè¦ä½¿ç¨lldb对系ç»è¿ç¨è¿è¡ä»»ä½è°è¯ââå»ºè®®æ¹æ³1失败æ¶å°è¯ã
- 3.1+çæ¬å å ¥äºå¯¹Foundation Modelçåè½çæ¯æã
å·¥ä½åçæ¦è¿°
æ¹æ³1ï¼ä¿®æ¹æ´å½»åºï¼å»ºè®®ä¼å å°è¯ï¼
å°è¯è¯ç»è¿ Apple 对 Apple æºè½çå¯ç¨æ£æ¥ï¼
- ç¨ä¸ä¸ªæ¥èªè¿éç代ç ï¼ä½¿ç¨lldbææ¶æ³¨å ¥eligibiltydï¼æ¨¡æç¾çLLæºåï¼ä½¿å ¶åç³»ç»æ°æ®åºè¾åºè¯¥æºåæ¯æAIçä¿¡æ¯ï¼å ·ä½åè½è¯·åèè¯¥èæ¬çæºä»åºï¼ã
- ä¿®æ¹
/private/var/db/eligibilityd/eligibility.plistè¿ä¸ªç³»ç»æä»¶ï¼ç¹å«æ¯è°æ´å ¶ä¸å ³äºè®¾å¤åºåç (OS_ELIGIBILITY_INPUT_DEVICE_REGION_CODE) åå¤é¨å¯å¨ç (OS_ELIGIBILITY_INPUT_EXTERNAL_BOOT_DRIVE) çæ£æ¥å¼ï¼ç¦æ¢ç³»ç»ç¨è¿äºåæ°æ¥ä½ä¸ºåè½å¼å¯çåææ¡ä»¶ã - éè¿ä¿®æ¹æä»¶æéå设置
uchg(immutable) æ è®°ï¼éå®ä¿®æ¹åçå个ç¼åæä»¶ç¶æï¼é²æ¢ç³»ç»å·æ°ç¼åæä»¶ã
æ¹æ³2ï¼å¯è§£å³æ¹æ³1失败ç奿ªé®é¢ï¼
- å¯ä»¥ç´æ¥ä¿®æ¹
/private/var/db/eligibilityd/eligibility.plistçå 个系ç»ç¼åæä»¶ï¼å¼ºå¶è®©MacOSç³»ç»è®¤ä¸ºè®¾å¤ç¬¦åå¼å¯Appleæºè½å项åè½çè¦æ±ã - 妿ä¸ä½¿ç¨lldbæ³¨å ¥ï¼å¯è½ä¼æ æ³å¼å¯é¨åé«çº§åè½ï¼ä½å¯ä»¥ä½ä¸ºä¿åºæ¹æ¡ã
- åæ ·éè¿
uchgé宿件ã
éå åè½ï¼å¼ºå¶ä¿®æ¹å°åºï¼Method 1 & 2 宿åå¯éï¼
- ä¿®æ¹
/private/var/db/com.apple.countryd/countryCodeCache.plistæä»¶ï¼å°ç¼åçå½å®¶ä»£ç å¼ºå¶æ¹ä¸ºUSã - è¿å¯ä»¥æ¬ºéªç³»ç»è®¤ä¸ºè®¾å¤ç©çä½äºç¾å½ï¼ä»èè§£é ChatGPT æ´åçåºäºå°çä½ç½®éå¶çåè½ã
åç½®æ¡ä»¶
- ä¸å°è¿è¡å ¼å®¹ macOS çæ¬ç Mac (M1æä»¥ä¸CPUï¼macOS 15.1æä»¥ä¸çæ¬)ã
- 管çåæéï¼å ä¸ºèæ¬ä½¿ç¨
sudoæ§è¡ç¹æå½ä»¤ã - ç³»ç»å°åºè®¾ç½®ä¸ºâç¾å½âï¼ç³»ç»è¯è¨ãSiriè¯è¨å设置为
ç®ä½ä¸æï¼æ®éè¯ï¼/ä¸å½ï¼English(USA)æå ¶ä»ä»»ä½åå°Appleæºè½æ¯æçè¯è¨åå°åºââè®¾ç½®ä¸ºå ¶ä»ä¸æ¯æ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: ä¸è½½å¹¶è¿è¡èæ¬
åå½ä»¤å¿«éæ§è¡æ¹æ³:
妿æ¨å®å ¨ä¿¡ä»»æ¬èæ¬ï¼å¯ä»¥ä½¿ç¨ä»¥ä¸åå½ä»¤ç´æ¥æ§è¡ï¼
ææ°3.21èæ¬ï¼
curl -sL https://raw.githubusercontent.com/kanshurichard/enableAppleAI/main/enable_ai.sh | bash
妿å¨å½å 访é®å°é¾ï¼è¯·å°è¯ä»¥ä¸å½å å éå°åï¼
curl -sL https://cdn.jsdelivr.net/gh/kanshurichard/enableAppleAI@main/enable_ai.sh | bash
妿æ¬çéå°é®é¢ï¼è¯·æ¨å»æIssueï¼å¹¶å¯å°è¯2.13æ§çï¼
curl -sL https://raw.githubusercontent.com/kanshurichard/enableAppleAI/main/enable_ai_old.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 Intelligenceâã
- éæ©æ¹æ³ï¼å»ºè®®ä¼å å°è¯ æ¹æ³ 1ã
- å¯éæ¥éª¤ï¼å¦ææ¨å¨ macOS 26ä¸ï¼èæ¬ä¼è¯¢é®æ¯å¦å¼ºå¶ä¿®æ¹å°åºä¸ºç¾å½ã注æï¼å¦ææ¨éè¦ä½¿ç¨ iPhone éåï¼è¯·å¡å¿ å¨ç¡®è®¤æ¤æ¥å宿é 对ï¼
- **éå¯**ï¼èæ¬æ§è¡å®æ¯åï¼éå¯ Macã
- **æ£æ¥**ï¼ç³»ç»è®¾ç½® -> Apple æºè½ä¸ Siriï¼æ¥çæ¯å¦å·²å¼å¯ã
- æ¢å¤ SIPï¼ç¡®è®¤åè½æ£å¸¸åï¼å»ºè®®éæ°è¿å
¥æ¢å¤æ¨¡å¼æ§è¡
csrutil enableå¯ç¨ SIPã
æ éæé¤ä¸åé¦
- å¦æèæ¬æ§è¡è¿ç¨ä¸éå°é误ï¼è¯·æ£æ¥ç»ç«¯è¾åºçé误信æ¯ã
- 妿æç §æ¥éª¤æ§è¡å Apple æºè½æªè½æåå¯ç¨ï¼æè åºç°å ¶ä»å¼å¸¸ï¼æ¨ä¹å¯ä»¥å¨æ¬é¡¹ç®ç GitHub Issues ä¸æäº¤é®é¢ã
常è§é®é¢
é®ï¼å¦ä½å¸è½½ï¼
çï¼è¿è¡èæ¬ï¼å¨ä¸»èåéæ© 2. è§£éæä»¶ (å¸è½½) å³å¯ä¸é®æ¢å¤æä»¶æéåç¶æã
é®ï¼ä¸ºä»ä¹æ°ç³»ç»ï¼å¦ macOS 16/26ï¼æ°å¢ç AI åè½æ²¡æåºç°ï¼
çï¼è¯·æ´æ°èæ¬å°ææ°çï¼v3.21+ï¼ãæ°çèæ¬å¢å äºå¯¹ countryd çä¿®æ¹ï¼è¿å¯¹è§£é ChatGPT çåè½è³å
³éè¦ãå级å建议å
è¿è¡æ§èæ¬çâå¸è½½âåè½ã
é®ï¼iPhone éåï¼iPhone Mirroringï¼æ æ³è¿æ¥ï¼ çï¼å¦ææ¨ä½¿ç¨äºâ强å¶ä¿®æ¹å°åºä¸ºç¾å½âçåè½ï¼å¯è½ä¼å¯¼è´ Mac å iPhone çå°åºä»£ç ä¸å¹é ï¼ä»èæ æ³é 对ãè§£å³æ¹æ³ï¼è¿è¡èæ¬éæ©âå¸è½½âæ¢å¤åç¶ -> é 对 iPhone -> 忬¡è¿è¡èæ¬å¯ç¨ AI (æ¤æ¶ä¿®æ¹å°åºä¸ä¼å½±åå·²é 对çè¿æ¥)ã
é®ï¼å¼å¯AIåï¼Siriè°ç¨çä»ç¶æ¯ç¾åº¦ç¾ç§è¿ç±»å½å å·¥å ·ï¼ChatGPT乿 æ³æ£å¸¸è°ç¨ï¼ çï¼è¯·å°è¯ä½¿ç¨èæ¬ä¸çâæ¹æ³2âæå¨âæ¹æ³1âæååï¼åæè¿è¡â强å¶ä¿®æ¹å°åºä¸ºç¾å½âçæä½ãè¿ä¼å°ç³»ç»åºå±çå°çä½ç½®ç¼åéå®ä¸º USï¼ä»èç»è¿éè¿ IP 夿å°åºçéå¶ï¼æ³¨æï¼ä»éé å忝æå°åºèç¹çç½ç»ç¯å¢ï¼ã
é®ï¼å¾ä¹åï¼Image Playgroundï¼æ æ³å建å¾çï¼ çï¼å¾ä¹åå¨èçæ¬ç³»ç»ä¸ä¸æ¯æä¸æè¯è¨ä¸å建å¾çï¼æè éè¦ macOS 26.1+ ç³»ç»ãå¨ä¹åççæ¬ï¼è¯·å°è¯å°ç³»ç»è¯è¨ä¸´æ¶æ¹ä¸ºè±è¯ï¼ç¾å½ï¼ã
é®ï¼æ¯å¦è½å¼å¯ç¹ä½ä¸æï¼æå ¶ä»éé¦åè¯è¨ï¼çAppleæºè½ï¼ çï¼åå³äº Apple 宿¹æ¯å¦å·²ä¸å该è¯è¨å ã妿宿¹å°æªæ¯æï¼å¼ºå¶å¼å¯ä¹æ²¡æç¨ã
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.
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