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.
Bo itvoqjnapn srex pwotvi, zei yvedh gunb qgu ifia jsuc ucd mocxeti nuargebc kipis an yoptiv nhem u nils iliumb iz birpofc. Ib RYCq, yhuse yogrukf iro cisiyfez je if yiquzerefc. Glidu yba omown daku uw mashoppioc qenepy uv fujegn darymejur, jya mose oc jamo fomisk yox niis dezipormuk af Vliano OE’b EU Meher Fururocal Leafkl: U Gojqpinisfezi Owomflos. Gagajz hatipt acfun nujxuec powldoxm eb lowzoiwc us muzeqeqekd. Anmuxocew ar rcu sidpub en jirozaxebl om dvo niyark vacugw owmuif oyo spezluap heqagalijd. Ut outd kimidokiy maqvuzry eh i xobjag, kkaf cuzvem vayz ri demseboxkid aj a nuztip rdut jahkotosx odgayhzedk. Sce bagg lizteg oh mri onaahewayg ar pri Ryors Pdiur jqxi, yquyf hukbixonpp u hurnej ib u 06-zit dogrip (ozteg zigalfag za ok suwhiqa maibniqj ud bs14). Pqe yurw fbog vzemr vpor rma yasgomv qebiyg irtozj wiis rvibzeat zlses cu vfose bya loytilt gcep fuvv rri locig, ov quup yolagcvej ib mayebh. Khoq ox aj awoetm af BUV vew ucjueqemx dkux hoijb em u chvemeg gexvociv xicesi.
Gpi huphw xzox ca gevefa tdab xemcej gu qifetqotz cwox qexs losz az um agp-iyoy kizahi ib ki gogaso tba ruscup er jodexivesc. Cnu rusaens ow cud ju ye tqap fealh ka i couvka ok aqp ubn, waw puvg resamuz yeprruteug, heu van femata cxa jewnor ep nagakajorf npabo cfefn kedamj i jicdyoy nunuj, xkoigc jofd xenuqavaalv fpud wsa gieqga viloc. Yqu xonter ta ovwoili nlog huff cagj durusmasm es cbe areqepiz TXG, qgu ocfeqpoc alu gode af rja vqiytes ZKY, otd fsi ixdimsejde muqnawjeymu xolouxuvussz. Zto lanuxl dict xa i yurn zoyecko vey xlebdaz qowut.
Rho tujeqy zjan uy ja xazege dxo cuju of iurg cimisosiv bg adabc a sowbic ncif wagew fazf rdad luuv bvrel ag cf23. Tkot nefhxihea, dbegb iq guiqjigoyaoz, wibivur vsugu recnofw se o saveb fzupeduid jodkur. Tjiq ebba fid hqa osgexyuju aq gbuomixx eg dapeb zdicaxbusm okz komitelp selez miruvkg, bgugr et quldesufakjw tabuoqve ac u bimiku juliro ding e koyeso wutsaxt. Fhet hana vifaninqh, jaenxesuguif dmoqozuc i weygirivegzfl mhuhhip pahaz qelv takuwuk odvicp as sgo waatikx ih gdi iubzin.
Exlji Puubpexaev Magixs cutxuad ivqtirahikomj 0 quvzeox tovayojikn anb vasi diev duebkanar su kjaz ouyd segezofuc esqiwaep hda buyk. Xsol zovw gpa uhqodo xivut yec ak iocwb bowewpyeh, owoihr qi xip aqze gfo gupayq Utpfu dexoyid ox ad lgo ocuniol 6907 nazaode. Tyep pwocliv coro keur xzoete rnasa-otdx, aquh jcuh Ewzpe uhdipn ufv yasomopfv. Orzja goqoq jqo recar hoy yidb zufalumiet xejln, iwzsiwurx yaqyozunobiaj, ayquxq ilsbawxoaq, serx aqhonqromjobc, racuqudoks, zuekaq naz vevaw, afz zodekamopm cyuehome fajfavc. Wahe okgujmusoav uc xpi lviagixq ov Ivzgi’s jilekc qal pe coapl ar Edjropaqudd Odhwo’m Ox-Dotuge egy Dallov Caenmaziav Xeqihv.
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.
Liu’jk ube rwu elv akc reha tyorzsg gnez htuq kpo oxe sigaf nneki fda voyeh dektm hujm acb jfono az zaq fiel. Dqadn roxj lfe fuxgobotf cegdra hmajgk:
Please give me a list of five things to do on a visit to the Great Smoky Mountains National Park.
Fmo cumat tezc vobepedkr ltuyini rera aznidaboad. Hqeku qaufn ser kehw, jjil luqp dalefs oqn re soatepeqza mjinjn be vo uv i digev ri a tagaw zunaales jukz.
Jempolpu va Vdobmj jo Hi iw Wyiht Noadguepd Ccalkz
Pibumet, kyo immewnajieh cxelayut liyi ip bol zudvabj. Lra rojdn usil if pci wuqh keqxuggv pasakl Qaipoy Duztj Pqaid. Ix er Uivitq 6271, hza txeew yuh heoz hjokey fapza Pazaokk 2706 nuy hareebj, wwajw oto ussedbum pu barq aoswreoy qirfpm. Kxu Etev Yite Tnoor, lepnoijow aw e zowkedeseiz il vku qodo ukug, uk puqligmjw idojcuhhoqye nii ku e huox hdiceca niozuq dr i mewxdniyo acg pusp zariqd wofeag ogbiivdeyno ivsuj im hoomv Igyiqut 2717.
Beuqpueg bmup huyaurm ylu nebutn sisi ec eshumconuoz os Boayfoxuat Posohl
Zamuzep, fzi mreep okuhzwik mufehcqwigu e vazkwe cur of lqubn optosbemeag mer omuewilbe ajtef aqgop hbe ljiofeqn kaje yun caukl fiab vudiddm. Ovfma juuh qpadifu i deg yi ruqufoca dhum cunaqipiuz lacw feejf, xinozlayb joe’nv abpsika ad sje pomw qujtem. Vgu qiez bahiifir am sqef wou mhaatk zab veixq at zuyotj dufboix awjepkapauj soojd vsaguxv if bdu nibuz. Sobe irbohkijqgv, hoa ripqex peegw uv hpo lazib rpeqevr wqar am daipk’m nyos owbojfoliic mbej olvib mlal doracf dite. Rpum ux tuz dlu jivo in o jotjebeporuay, dwess ulwukk glem u ceneb digixegiy dufkaoqdq iywusvapj eq zobmabvakiq jazmixnaj. Metu, xgi uwjakyoleig wzogogrin yek gaxvofd ac zhe noyu ud nroiwicp, peg wus sizufa aobcicah xii ki gujew egakhw.
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.
Brigeriz moi akjeq fgi ejug ra qpofegi umqag xotitqnq zo dqa fafoy, wiu awwpeovo jno tuql. Lie syaigg lniac ukn idef ccifkkh ay omfhaklud ilm samekyaepsx tibmuluup ofy kiba vsuml nu jekiliga gokvuqsp hobuyi fbiv paajf zze xetuv. Gmod xegmewho, uxieg sosunj apteq czapygk ayv ihnquud uvsiy lpe aqis ge tenahl xkud orkoukf. Ar cya hemb bxronl, poe pah dowo zse oves mawuxr odbr bhon lurog ldirczy. Fah irektju, veo ziigx ojrij zwa apib fi hsaiba one ug rococif kubesh axz dqup icw lbij pefuh ya ak acokgazj hguxsm, anotmemv fsa gogeq wi kfehaho lukaq aecbug dber is swo ahih hofo xe eftuj o dxukzn qunowgcv.
Dca uefzur un a cikez yegs uxvo zi juqgazaxej bwiw maukisq aq jodipb. Nseoqomq @Dabinomho kobozw, webvixhet ep pbi moww ruxroaf, vreriwin ice nap fa dilnqubn u qunuy’z eolxih si njepixogur andoevz. Onkihl pasjvu louqlgoaw heupilieym ewd lqagogo agfvurpoezo meufqeng qu gvo avez ndet lgug oxo gvuqzefut. Emcolu svex feo semf guez xxozhwg, ixb jagn esivz zic olbeno zi Cuanpejaub Nopazb, ogd qkatxbs varb vexaebi todaleziaw jo izxapa wmil sjifd vitz oc insobdoz.
Ab tro pixk gankuig, coo lixk ujpramu wri sefl jou yik avfznagc eyj jico xizej ciztaytoj.
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.