Buckets:

rtrm's picture
download
raw
14.3 kB
import{s as ke,n as We,o as Ie}from"../chunks/scheduler.1d51f4c0.js";import{S as Se,i as Ce,g as ve,s as n,r as s,A as _e,h as He,f as a,c as r,j as Pe,u as o,x as Ee,k as Ae,y as Fe,a as i,v as m,d as l,t as p,w as f}from"../chunks/index.fda43871.js";import{C as Me}from"../chunks/CourseFloatingBanner.6fa6023e.js";import{Q as u}from"../chunks/Question.3fd8a128.js";import{H as h,E as ze}from"../chunks/getInferenceSnippets.58a43ad0.js";function De(Te){let $,B,G,j,c,Q,g,Y,d,qe="Let’s test what you learned in this chapter!",J,x,K,w,V,y,X,b,Z,v,ee,H,te,T,ae,q,ie,P,ne,A,re,k,se,W,oe,I,me,S,le,C,pe,_,fe,E,he,F,ue,M,$e,z,ce,D,ge,N,de,L,xe,O,we,R,ye,U,be;return c=new h({props:{title:"End-of-chapter quiz",local:"end-of-chapter-quiz",headingTag:"h1"}}),g=new Me({props:{chapter:6,classNames:"absolute z-10 right-0 top-0"}}),x=new h({props:{title:"1. What best describes the Hugging Face Hub?",local:"1-what-best-describes-the-hugging-face-hub",headingTag:"h3"}}),w=new u({props:{choices:[{text:"A social platform for AI enthusiasts to connect",explain:"The Hub is more than a social platform; it's focused on sharing AI resources."},{text:"A collaborative hub for hosting models, datasets, and interactive demos",explain:"The Hub is often called 'GitHub for AI' — a central place for models, datasets, and Spaces.",correct:!0},{text:"A cloud service focused exclusively on training ML models",explain:"Training is not the primary purpose of the Hub."},{text:"A programming language and development environment for ML",explain:"The Hub is a platform/ecosystem, not a language or IDE."}]}}),y=new h({props:{title:"2. Roughly how many models are hosted on the Hub?",local:"2-roughly-how-many-models-are-hosted-on-the-hub",headingTag:"h3"}}),b=new u({props:{choices:[{text:"~10,000 models",explain:"The Hub is much larger than this."},{text:"~100,000 models",explain:"It's grown beyond this figure."},{text:"Over 500,000 models",explain:"The Hub hosts a very large and growing number of models.",correct:!0},{text:"Nearly 1 million models",explain:"Not quite at this mark."}]}}),v=new h({props:{title:"3. What are the three pillars of the Hugging Face Hub?",local:"3-what-are-the-three-pillars-of-the-hugging-face-hub",headingTag:"h3"}}),H=new u({props:{choices:[{text:"Models, code repos, and documentation",explain:"Code and docs exist, but the core pillars are different."},{text:"Models, datasets, and Spaces",explain:"These are the core components of the Hub.",correct:!0},{text:"Training infra, inference, and deployment tools",explain:"These are important topics, but not the core pillars."},{text:"Research papers, dev tools, and production services",explain:"Not the canonical pillars."}]}}),T=new h({props:{title:"4. What is a Model Card and why is it important?",local:"4-what-is-a-model-card-and-why-is-it-important",headingTag:"h3"}}),q=new u({props:{choices:[{text:"A payment method or subscription for premium models",explain:"A Model Card is documentation, not a payment tool."},{text:"A physical ID card for model creators",explain:"Model Cards are documentation files."},{text:"Documentation of a model's capabilities, limits, training, and ethics",explain:"Model Cards explain capabilities, limitations, training data, and ethical considerations.",correct:!0},{text:"A loyalty program for frequent users",explain:"Not related to loyalty or rewards."}]}}),P=new h({props:{title:"5. What are Hugging Face Spaces?",local:"5-what-are-hugging-face-spaces",headingTag:"h3"}}),A=new u({props:{choices:[{text:"Physical meeting locations for AI conferences",explain:"Spaces are web apps, not physical spaces."},{text:"Interactive web apps that demo AI models",explain:"Spaces let users try models and help creators share their work.",correct:!0},{text:"Storage facilities for datasets and models",explain:"Datasets and models are hosted on the Hub; Spaces are apps."},{text:"Premium subscription tiers with extra features",explain:"Spaces are not subscription tiers."}]}}),k=new h({props:{title:"6. Which is NOT a main way to use models on the Hub?",local:"6-which-is-not-a-main-way-to-use-models-on-the-hub",headingTag:"h3"}}),W=new u({props:{choices:[{text:"Interactive widgets in the browser",explain:"Widgets are a core way to try models."},{text:"API calls via Inference Providers",explain:"APIs are a primary usage path."},{text:"Direct download and local execution",explain:"You can always download and run models locally."},{text:"Exclusive hardware integration requiring special equipment",explain:"Exclusive hardware is not required.",correct:!0}]}}),I=new h({props:{title:"7. What is a key benefit of open source in the HF community?",local:"7-what-is-a-key-benefit-of-open-source-in-the-hf-community",headingTag:"h3"}}),S=new u({props:{choices:[{text:"Everything is always free with no restrictions",explain:"Licenses vary; open source doesn't imply no restrictions."},{text:"Transparency, collaboration, and faster innovation",explain:"Open source accelerates progress through shared knowledge.",correct:!0},{text:"No licensing limitations across all resources",explain:"Licensing terms differ by project."},{text:"HF works only with Python",explain:"The ecosystem supports many languages and frameworks."}]}}),C=new h({props:{title:"8. What are Inference Providers?",local:"8-what-are-inference-providers",headingTag:"h3"}}),_=new u({props:{choices:[{text:"People who provide customer support",explain:"Providers are services, not individuals."},{text:"Companies specializing in training models from scratch",explain:"Providers focus on hosting and serving models."},{text:"Services that host and run models with API access",explain:"They run models and expose APIs for developers.",correct:!0},{text:"Universities doing foundational research",explain:"Research institutions are not the definition here."}]}}),E=new h({props:{title:"9. How should beginners start with Hugging Face?",local:"9-how-should-beginners-start-with-hugging-face",headingTag:"h3"}}),F=new u({props:{choices:[{text:"Train custom models from scratch immediately",explain:"Start simpler to build intuition first."},{text:"Explore and experiment with existing models",explain:"Trying existing models is the best starting point.",correct:!0},{text:"Build complex applications right away",explain:"Begin with small experiments before complex apps."},{text:"Only read docs before any practical work",explain:"Hands-on experimentation is highly encouraged."}]}}),M=new h({props:{title:"10. What is the main purpose of the Community tab?",local:"10-what-is-the-main-purpose-of-the-community-tab",headingTag:"h3"}}),z=new u({props:{choices:[{text:"A marketplace for selling models and datasets",explain:"The Community tab is not a marketplace."},{text:"Dedicated technical support by HF staff",explain:"Support may appear, but it's not the primary purpose."},{text:"Discussions, feedback, collaboration, and knowledge sharing",explain:"It enables community interaction and learning.",correct:!0},{text:"Display ads and sponsor promotions",explain:"Ads are not the goal of the Community tab."}]}}),D=new h({props:{title:"11. Which framework is typically recommended for a first Space?",local:"11-which-framework-is-typically-recommended-for-a-first-space",headingTag:"h3"}}),N=new u({props:{choices:[{text:"Streamlit for data visualization",explain:"Great for viz, but not the simplest starting point here."},{text:"Docker for maximum control",explain:"Powerful, but more advanced."},{text:"Gradio for simplicity and ease of use",explain:"Gradio is beginner-friendly and fast to build with.",correct:!0},{text:"React for advanced web development",explain:"Useful for custom apps, but more complex to start."}]}}),L=new h({props:{title:"12. What should you do before commercial use of a model?",local:"12-what-should-you-do-before-commercial-use-of-a-model",headingTag:"h3"}}),O=new u({props:{choices:[{text:"Nothing beyond basic technical integration",explain:"Always check the license first."},{text:"Review the model's license terms for compliance",explain:"Licenses vary; ensure your use aligns with the terms.",correct:!0},{text:"Pay a mandatory subscription for commercial rights",explain:"Payment is not generally required; follow the license."},{text:"Obtain personal permission from the author",explain:"Usually unnecessary if license terms are followed."}]}}),R=new ze({props:{source:"https://github.com/huggingface/101-course/blob/main/chapters/en/chapter1/7.mdx"}}),{c(){$=ve("meta"),B=n(),G=ve("p"),j=n(),s(c.$$.fragment),Q=n(),s(g.$$.fragment),Y=n(),d=ve("p"),d.textContent=qe,J=n(),s(x.$$.fragment),K=n(),s(w.$$.fragment),V=n(),s(y.$$.fragment),X=n(),s(b.$$.fragment),Z=n(),s(v.$$.fragment),ee=n(),s(H.$$.fragment),te=n(),s(T.$$.fragment),ae=n(),s(q.$$.fragment),ie=n(),s(P.$$.fragment),ne=n(),s(A.$$.fragment),re=n(),s(k.$$.fragment),se=n(),s(W.$$.fragment),oe=n(),s(I.$$.fragment),me=n(),s(S.$$.fragment),le=n(),s(C.$$.fragment),pe=n(),s(_.$$.fragment),fe=n(),s(E.$$.fragment),he=n(),s(F.$$.fragment),ue=n(),s(M.$$.fragment),$e=n(),s(z.$$.fragment),ce=n(),s(D.$$.fragment),ge=n(),s(N.$$.fragment),de=n(),s(L.$$.fragment),xe=n(),s(O.$$.fragment),we=n(),s(R.$$.fragment),ye=n(),U=ve("p"),this.h()},l(e){const t=_e("svelte-u9bgzb",document.head);$=He(t,"META",{name:!0,content:!0}),t.forEach(a),B=r(e),G=He(e,"P",{}),Pe(G).forEach(a),j=r(e),o(c.$$.fragment,e),Q=r(e),o(g.$$.fragment,e),Y=r(e),d=He(e,"P",{"data-svelte-h":!0}),Ee(d)!=="svelte-19og2hy"&&(d.textContent=qe),J=r(e),o(x.$$.fragment,e),K=r(e),o(w.$$.fragment,e),V=r(e),o(y.$$.fragment,e),X=r(e),o(b.$$.fragment,e),Z=r(e),o(v.$$.fragment,e),ee=r(e),o(H.$$.fragment,e),te=r(e),o(T.$$.fragment,e),ae=r(e),o(q.$$.fragment,e),ie=r(e),o(P.$$.fragment,e),ne=r(e),o(A.$$.fragment,e),re=r(e),o(k.$$.fragment,e),se=r(e),o(W.$$.fragment,e),oe=r(e),o(I.$$.fragment,e),me=r(e),o(S.$$.fragment,e),le=r(e),o(C.$$.fragment,e),pe=r(e),o(_.$$.fragment,e),fe=r(e),o(E.$$.fragment,e),he=r(e),o(F.$$.fragment,e),ue=r(e),o(M.$$.fragment,e),$e=r(e),o(z.$$.fragment,e),ce=r(e),o(D.$$.fragment,e),ge=r(e),o(N.$$.fragment,e),de=r(e),o(L.$$.fragment,e),xe=r(e),o(O.$$.fragment,e),we=r(e),o(R.$$.fragment,e),ye=r(e),U=He(e,"P",{}),Pe(U).forEach(a),this.h()},h(){Ae($,"name","hf:doc:metadata"),Ae($,"content",Ne)},m(e,t){Fe(document.head,$),i(e,B,t),i(e,G,t),i(e,j,t),m(c,e,t),i(e,Q,t),m(g,e,t),i(e,Y,t),i(e,d,t),i(e,J,t),m(x,e,t),i(e,K,t),m(w,e,t),i(e,V,t),m(y,e,t),i(e,X,t),m(b,e,t),i(e,Z,t),m(v,e,t),i(e,ee,t),m(H,e,t),i(e,te,t),m(T,e,t),i(e,ae,t),m(q,e,t),i(e,ie,t),m(P,e,t),i(e,ne,t),m(A,e,t),i(e,re,t),m(k,e,t),i(e,se,t),m(W,e,t),i(e,oe,t),m(I,e,t),i(e,me,t),m(S,e,t),i(e,le,t),m(C,e,t),i(e,pe,t),m(_,e,t),i(e,fe,t),m(E,e,t),i(e,he,t),m(F,e,t),i(e,ue,t),m(M,e,t),i(e,$e,t),m(z,e,t),i(e,ce,t),m(D,e,t),i(e,ge,t),m(N,e,t),i(e,de,t),m(L,e,t),i(e,xe,t),m(O,e,t),i(e,we,t),m(R,e,t),i(e,ye,t),i(e,U,t),be=!0},p:We,i(e){be||(l(c.$$.fragment,e),l(g.$$.fragment,e),l(x.$$.fragment,e),l(w.$$.fragment,e),l(y.$$.fragment,e),l(b.$$.fragment,e),l(v.$$.fragment,e),l(H.$$.fragment,e),l(T.$$.fragment,e),l(q.$$.fragment,e),l(P.$$.fragment,e),l(A.$$.fragment,e),l(k.$$.fragment,e),l(W.$$.fragment,e),l(I.$$.fragment,e),l(S.$$.fragment,e),l(C.$$.fragment,e),l(_.$$.fragment,e),l(E.$$.fragment,e),l(F.$$.fragment,e),l(M.$$.fragment,e),l(z.$$.fragment,e),l(D.$$.fragment,e),l(N.$$.fragment,e),l(L.$$.fragment,e),l(O.$$.fragment,e),l(R.$$.fragment,e),be=!0)},o(e){p(c.$$.fragment,e),p(g.$$.fragment,e),p(x.$$.fragment,e),p(w.$$.fragment,e),p(y.$$.fragment,e),p(b.$$.fragment,e),p(v.$$.fragment,e),p(H.$$.fragment,e),p(T.$$.fragment,e),p(q.$$.fragment,e),p(P.$$.fragment,e),p(A.$$.fragment,e),p(k.$$.fragment,e),p(W.$$.fragment,e),p(I.$$.fragment,e),p(S.$$.fragment,e),p(C.$$.fragment,e),p(_.$$.fragment,e),p(E.$$.fragment,e),p(F.$$.fragment,e),p(M.$$.fragment,e),p(z.$$.fragment,e),p(D.$$.fragment,e),p(N.$$.fragment,e),p(L.$$.fragment,e),p(O.$$.fragment,e),p(R.$$.fragment,e),be=!1},d(e){e&&(a(B),a(G),a(j),a(Q),a(Y),a(d),a(J),a(K),a(V),a(X),a(Z),a(ee),a(te),a(ae),a(ie),a(ne),a(re),a(se),a(oe),a(me),a(le),a(pe),a(fe),a(he),a(ue),a($e),a(ce),a(ge),a(de),a(xe),a(we),a(ye),a(U)),a($),f(c,e),f(g,e),f(x,e),f(w,e),f(y,e),f(b,e),f(v,e),f(H,e),f(T,e),f(q,e),f(P,e),f(A,e),f(k,e),f(W,e),f(I,e),f(S,e),f(C,e),f(_,e),f(E,e),f(F,e),f(M,e),f(z,e),f(D,e),f(N,e),f(L,e),f(O,e),f(R,e)}}}const Ne='{"title":"End-of-chapter quiz","local":"end-of-chapter-quiz","sections":[{"title":"1. What best describes the Hugging Face Hub?","local":"1-what-best-describes-the-hugging-face-hub","sections":[],"depth":3},{"title":"2. Roughly how many models are hosted on the Hub?","local":"2-roughly-how-many-models-are-hosted-on-the-hub","sections":[],"depth":3},{"title":"3. What are the three pillars of the Hugging Face Hub?","local":"3-what-are-the-three-pillars-of-the-hugging-face-hub","sections":[],"depth":3},{"title":"4. What is a Model Card and why is it important?","local":"4-what-is-a-model-card-and-why-is-it-important","sections":[],"depth":3},{"title":"5. What are Hugging Face Spaces?","local":"5-what-are-hugging-face-spaces","sections":[],"depth":3},{"title":"6. Which is NOT a main way to use models on the Hub?","local":"6-which-is-not-a-main-way-to-use-models-on-the-hub","sections":[],"depth":3},{"title":"7. What is a key benefit of open source in the HF community?","local":"7-what-is-a-key-benefit-of-open-source-in-the-hf-community","sections":[],"depth":3},{"title":"8. What are Inference Providers?","local":"8-what-are-inference-providers","sections":[],"depth":3},{"title":"9. How should beginners start with Hugging Face?","local":"9-how-should-beginners-start-with-hugging-face","sections":[],"depth":3},{"title":"10. What is the main purpose of the Community tab?","local":"10-what-is-the-main-purpose-of-the-community-tab","sections":[],"depth":3},{"title":"11. Which framework is typically recommended for a first Space?","local":"11-which-framework-is-typically-recommended-for-a-first-space","sections":[],"depth":3},{"title":"12. What should you do before commercial use of a model?","local":"12-what-should-you-do-before-commercial-use-of-a-model","sections":[],"depth":3}],"depth":1}';function Le(Te){return Ie(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class je extends Se{constructor($){super(),Ce(this,$,Le,De,ke,{})}}export{je as component};

Xet Storage Details

Size:
14.3 kB
·
Xet hash:
611867a630b8d2549e75e81b584425d42f214aabf286054780991ba9b7575821

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.