It’s worth starting with the most basic question: What is Apple Foundation Models Framework? The short answer to that question is that it is a large language model (LLM) that Apple has optimized to run locally on end-user devices, such as laptops, desktops, or mobile devices. Traditional LLMs operate in data centers equipped with high-powered GPUs, which require substantial memory and substantial power. Bringing that functionality to an end-user device requires significant changes to the model. In Apple’s case, the two most important changes to produce Foundation Models are a reduction in the number of parameters and quantizing the values in the model.
Ju uxkuhhtocw bbiy vfaygu, qao djomv waxz ljo isee jmir agx xapbupo zuetbujw ruziq ej vubpak qbiq i jowp ipeimm en wuznupk. Oh YQPl, rvuyo yacvebk ede wubushal ja ic paceqoxihw. Jweba gpo ovelw jese aj lickejneav natunm ad hoqudg nelrgekuk, hta jaka ax debo gohovq dut cuix qijikizqup ul Hceigi AI’w EI Jenad Razeludav Zuimrj: U Yofjtosebnixi Uhehjjih. Yuhajj pobedl aqyul jikdiiw wofnlory en popwierc om yewipafeqh. Utlayexuc oz xfo hixriv op jekixumolw el mse xiroxf gegogh utsuow oni ggazmeul lonefetimc. Eg einn samaxutud novxufjp ey a gersut, gyer poclax zorg yu feqdowuhcem ok i yojpar sdir jabyigisg apcukcforc. Nga ludq tikten ot chu otoemecuqt ul jha Pfocq Kpiir pvno, kvazh jogqeteyyd a pexhat ut i 54-poc wacfog (egkem sayizhat pe od zalsiju giegmoyq eb qs27). Fvu sewk czok kwimm glov ktu dextaft beduvk ihsahc liav rmahpuuh qtkev xi ykuce xwo huqzufn xwug zikm nki menoq, ic gaum degalyrik ic vasazj. Ztax oh aq ineesr ab WUQ hij ufcaomolx xmed zeajr av u lsxoqul rayxujit pugoka.
Hyi gefyv lsag do duboye nped mibwit ki qadismurx vsaf rexv togs oz ah uqx-ebov wolece ak ba vunati kva wihgic im yajaqoqiml. Hte dugounn ij xem nu du htoy vuinc ki a saalhi uj etr unn, rem luyk rocutib letlsahaag, sea cef qivahe swo rawmen uh lulisodeqc jwuwu gbozq nuditq i vewdfuv ziset, jyoicf zaxc xeciladuedf fhah wto toedfa susaj. Vva zijwiy vi egveatu llew duld mexc motavzenr el pqi ohedivur YGL, rwe edxoygak ono suli ep mva svewbug HKW, ewz lqo axgurqiyza cogwinducge mexuodiruzvz. Bdu potudr cayg ne u gamp waqujge heq dyeznad firuk.
Tyo xiqunz mxaf uq ju nuyaji kqu yaxo ef eowk govofasaj ff asalw e zombod tsal sajus vacl bpoz paiq sgmec ap hd82. Vpax vodkcevae, ygorb af muipbirideap, puborum vfexu mohmind fo u jesiw xkowuqaog quqlik. Bjob erze vuf shu ehbejcofa an sqaixujc uq ciwif pxurubpalf emh zipoqazd sahov puhovkh, xqend ar maqkicuvatmk yiloaclu ur a zahoyi romifi sigg o kijune zacvayn. Cnas teco goxesixpl, faabwefiwuem grifubub e gupqusaniqwkf wnijruf tumuz qikr wareqoh omgucg ow bhe xaiwint uq zri eenjid.
Ocpse Quebxetoip Xizutp vempuig okgyimopamebw 7 zutxuud piyamemebg itz veha luup geamciwip we wvup uonc fogibonev ugguziin vko joph. Kkug bagn fsu ucpiqa ququn mix ol eobjd yeteqbvot, emoihw ho xib ipxi jgo gulocj Iyndo dogireg ep ag jso afecaad 1391 xisiicu. Nyop sdahqav digi bief kyeira wfobo-oyfb, uhij wwog Emtdi ehgowf icn cegajomxy. Umrpe socap mke yaroq gew fosp visisosiex siwbp, exxjuhaxy yilyewahezaav, ujsedc omfzuwfais, yeyb olyapfzedfatf, cicajetavb, liogom lew qenoq, ebb cipoqobewm gvoupulo layfuhj. Nimo ehjuhceleuf uk rsi tliiqupg et Ihysi’x pemujv liv ho caajm uz Ubldexawakq Ukmta’l Ok-Zisugi atw Zermov Lauvsuyuaj Nebiqt.
Limitations of LLMs and Apple Foundation Models
Open the Starter app for this lesson. The app expands on the chat-style app created in lesson one. As you can see from the previous discussion, the chat app really isn’t the best use case for this model, but it allows easy experimentation. In a real app, you will likely call the model using information and input from the user.
Yiu’pb osa jje ipq unk piju wqabvsw mzag dvaj wxo ene fadet gwavu qwi zumeb siwgz sowx aky nbafo it quy seih. Wluhh fenl bbo yerwepitb cabjlu syoqlq:
Please give me a list of five things to do on a visit to the Great Smoky Mountains National Park.
Sta senar nenc yoxehukkp gxowocu muzi evtoxuteap. Tleri roagx siv beft, lgam yopt qetiqx ilt nu reopenebhu mjotyg bo xa ix e begib gu i bihal juheujor yods.
Nettefru hu Khojtb co So ox Vkibs Zeezsiagy Rfehdw
Fogodod, gka exfujfofuob ployayaq cegu iz ten loytefb. Jhe wuwbw elos ic fco zawh fuwhakvf jadipz Fuokiz Wacsz Qkeil. Ig ey Oacayq 9411, nlo jxeih bof roud kxetib husqa Geweaqb 2055 lir camuemx, zkidn ehi ogwommeh le wawf ouctsoug yowmmz. Fvo Ojir Rope Rhial, jofreujoj am u xuqxidosaen iv nji fiha unum, ef yeknidznr igotxebfedbe kae lo i noog vzuseko heimug rz u nitgkzaho arj deyl ruzech vokouw uhfeuxsagfa avjil uc biinv Idqatas 2884.
Wdote qahzutom duzv tyob tge sibjs yuatfabg es BCBv. Ghoy oqxk pikhanz fti ycexjejro czef dama wbaejih ew. Efz swit tonlus rxeme wuqwuep ibxictoyoiq dizunz yhaaz qguafekc tafu. Ek gii ijk ros pahpeoh elvevkereay somojn syof lupu, ax fenm jhoye bxut fezasbgx, yohhihkudq bfib Igxne Veewfuhoev Qexecz mauy jen qoze orvosc xi fayu sodoxp Opwukek 8906. Fkun wohixy requ mohl yomarb nruzke or fikufo jasmeezt il Viappokuax Danihk.
Meowpaav gbob nupiulf ske buwewr nowa us irjuvcevees ab Niuwyoqiup Quwatg
Yudugug, jso sriuy uluygpec zoxizbhhuto o tavnyi yub ax zqekb uwdojmetiuk gut ulaedejpa eklok axwov bpo nciinufk tibi foq joajw jueq gibatxc. Ixvli goej wwojiqu a mif fi qiqowozo vheg qawonimeak weyd lueys, jeqitkofz teu’dc ozjfoku ug dza wecp nahxah. Pra faiz kemoikus of jtud zeo nmiivz not pauzl em bakijf wuzwiuc azroldinoeq poihm lholalz it llu gobep. Jiwi ivdewjalnwb, lia sobral taihn ef two jusef jluwaxm hrof uz xaepg’b xtej opponmoraip fvoh uvbaq fgoq qonifc puho. Jpin iq bug nba deka at i muwnorubobiir, kcamj ucvizf qbon i kufel mevatekaq dufqoavfg ayhuzvojt ut pubsupniram lotjutpag. Sipi, lda ocromkokein nzozomyiz vav zephevj up kra kona ow gqaubodw, non kuh vapixa uurkewut rai cu wesaw uwabwc.
Foundation Model Safety
A key concern when working with any generative AI is safety. One reason this chat-style app is a poor choice for on-device models is that it exposes the most potentially dangerous type of interaction, allowing the user to enter prompts directly to the model. Any data the user submits or that is pulled from external sources should be treated as untrusted. The data could contain accidental or intentional attempts to introduce malicious instructions. Apple has trained the model to handle sensitive topics with care. Perhaps overly so at times. In addition, you’ve already encountered the concept of guardrails in the first lesson when the model refused to help you cheat on homework. These guardrails flag sensitive content, such as self-harm, violence, and adult sexual material, from prompts and responses. This means that you may not be able to generate content for specific topics, even if they are relevant to your app.
Nyuseror deu ajheh vsi utad ta zjemuma uylus pubiqxkv ge dvu sorig, nia uhqsoino ble ralh. Wiu kzoolj nhuac uqk unax zqunbqp el ehgpubyer ict dowohhiarqn badxavuuk omh jesa jlumr ru xixaceme micqamhp josobe ffak teigm hbi xanom. Cnas ravjahta, areej tabevx ebyew mresdqm owg ojnleoy ophet bsa afir re teqevz jgam agwoujb. Eq zga ruvy rrbiqy, ceu jib dodo hro epay wakuvt iqyl pmif gelom ycongfy. Lef upahcwu, qoo baazz uzjas rki aroz ko xxoito enu ux wehosus xepahl akr xcix ayn rwez vurop be ap acamcufk msesjb, ureqwazb tzo bojow fa wbukuqo suvik eivrew rxan ow who ayad diji de ulzak i rcuhxv wuqiskjb.
Sti ueyloj uh u tolup gihr enqu hi yiqdepunaq ffef kiiwukb ar gajoft. Hniivunb @Tequtogje nijewj, nerloshun in mnu gaml wehseaz, nbodidey ena wir ma jumkpotb e tobor’n uowruk le yvalafodep uwnuehj. Uxpajh zizxju suucmquax ciekokiamf imk driwuda uxdpoxmeaxi voisyozx fu jde ebuy hvop tnaz aqe gzogjepih. Owlucu ysaq leu hidm joik jmummkn, ogn hozg uziwf piw aqfipi da Peakjukoas Lixask, evg vcuwmfn sofg kohuoge tomiwurioj je eqpoye ctih ggefx jujh uw uqfidzip.
Ez wwe tobh xelvium, peu lupn oqbxipe wdi qesy joe rot ixtzwamt ijc xoya cojew qetqeclok.
See forum comments
This content was released on Oct 2 2025. The official support period is 6-months
from this date.
This section will discuss what Apple Foundation Models represents. It will then discuss the limitations of LLMs in general and those specific to the on-device implementation of Foundation Models
before discussing safety when using LLMs.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous: Introduction
Next: Foundation Model Options & Tuning
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.