[{"data":1,"prerenderedAt":524},["ShallowReactive",2],{"docs-navigation":3,"docs:\u002Fdocs\u002Freference\u002Fmodels":235,"docs-surround:\u002Fdocs\u002Freference\u002Fmodels":519},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","\u002Fdocs","docs",[9,13,37,55,70,128,146,191,217],{"title":10,"path":6,"stem":11,"icon":12},"Hubstruct documentation","docs\u002Findex","book-open",{"title":14,"icon":15,"path":16,"stem":17,"children":18,"page":36},"Getting started","rocket","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[19,24,28,32],{"title":20,"path":21,"stem":22,"icon":23},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction",null,{"title":25,"path":26,"stem":27,"icon":23},"Requirements","\u002Fdocs\u002Fgetting-started\u002Frequirements","docs\u002F1.getting-started\u002F2.requirements",{"title":29,"path":30,"stem":31,"icon":23},"Quick start","\u002Fdocs\u002Fgetting-started\u002Fquick-start","docs\u002F1.getting-started\u002F3.quick-start",{"title":33,"path":34,"stem":35,"icon":23},"First steps","\u002Fdocs\u002Fgetting-started\u002Ffirst-steps","docs\u002F1.getting-started\u002F4.first-steps",false,{"title":38,"icon":39,"path":40,"stem":41,"children":42,"page":36},"Concepts","lightbulb","\u002Fdocs\u002Fconcepts","docs\u002F2.concepts",[43,47,51],{"title":44,"path":45,"stem":46,"icon":23},"How it works","\u002Fdocs\u002Fconcepts\u002Fhow-it-works","docs\u002F2.concepts\u002F1.how-it-works",{"title":48,"path":49,"stem":50,"icon":23},"Processing steps","\u002Fdocs\u002Fconcepts\u002Fprocessing","docs\u002F2.concepts\u002F2.processing",{"title":52,"path":53,"stem":54,"icon":23},"Media","\u002Fdocs\u002Fconcepts\u002Fmedia","docs\u002F2.concepts\u002F3.media",{"title":56,"path":57,"stem":58,"children":59,"icon":69},"Libraries","\u002Fdocs\u002Flibraries","docs\u002F3.libraries\u002F1.index",[60,61,65],{"title":56,"path":57,"stem":58,"icon":23},{"title":62,"path":63,"stem":64,"icon":23},"Storage","\u002Fdocs\u002Flibraries\u002Fs3","docs\u002F3.libraries\u002F3.s3",{"title":66,"path":67,"stem":68,"icon":23},"Uploading","\u002Fdocs\u002Flibraries\u002Fuploading","docs\u002F3.libraries\u002F4.uploading","layer-group",{"title":71,"icon":72,"path":73,"stem":74,"children":75,"page":36},"Features","wand-magic-sparkles","\u002Fdocs\u002Ffeatures","docs\u002F4.features",[76,80,84,88,92,96,100,104,108,112,116,120,124],{"title":77,"path":78,"stem":79,"icon":23},"Browsing","\u002Fdocs\u002Ffeatures\u002Fbrowsing","docs\u002F4.features\u002F01.browsing",{"title":81,"path":82,"stem":83,"icon":23},"Search","\u002Fdocs\u002Ffeatures\u002Fsearch","docs\u002F4.features\u002F02.search",{"title":85,"path":86,"stem":87,"icon":23},"Tags","\u002Fdocs\u002Ffeatures\u002Ftags","docs\u002F4.features\u002F03.tags",{"title":89,"path":90,"stem":91,"icon":23},"Albums","\u002Fdocs\u002Ffeatures\u002Falbums","docs\u002F4.features\u002F04.albums",{"title":93,"path":94,"stem":95,"icon":23},"People and faces","\u002Fdocs\u002Ffeatures\u002Fpeople","docs\u002F4.features\u002F05.people",{"title":97,"path":98,"stem":99,"icon":23},"Groups","\u002Fdocs\u002Ffeatures\u002Fgroups","docs\u002F4.features\u002F06.groups",{"title":101,"path":102,"stem":103,"icon":23},"Duplicates and stacks","\u002Fdocs\u002Ffeatures\u002Fduplicates-and-stacks","docs\u002F4.features\u002F07.duplicates-and-stacks",{"title":105,"path":106,"stem":107,"icon":23},"NSFW","\u002Fdocs\u002Ffeatures\u002Fnsfw","docs\u002F4.features\u002F08.nsfw",{"title":109,"path":110,"stem":111,"icon":23},"Trash","\u002Fdocs\u002Ffeatures\u002Ftrash","docs\u002F4.features\u002F09.trash",{"title":113,"path":114,"stem":115,"icon":23},"Home and the dashboard","\u002Fdocs\u002Ffeatures\u002Fhome-and-dashboard","docs\u002F4.features\u002F10.home-and-dashboard",{"title":117,"path":118,"stem":119,"icon":23},"Live updates and offline","\u002Fdocs\u002Ffeatures\u002Flive-updates","docs\u002F4.features\u002F11.live-updates",{"title":121,"path":122,"stem":123,"icon":23},"Appearance and the app","\u002Fdocs\u002Ffeatures\u002Fappearance","docs\u002F4.features\u002F12.appearance",{"title":125,"path":126,"stem":127,"icon":23},"Places","\u002Fdocs\u002Ffeatures\u002Fplaces","docs\u002F4.features\u002F13.places",{"title":129,"icon":130,"path":131,"stem":132,"children":133,"page":36},"Administration","sliders","\u002Fdocs\u002Fadministration","docs\u002F5.administration",[134,138,142],{"title":135,"path":136,"stem":137,"icon":23},"Users and sign-in","\u002Fdocs\u002Fadministration\u002Fusers-and-sign-in","docs\u002F5.administration\u002F1.users-and-sign-in",{"title":139,"path":140,"stem":141,"icon":23},"API keys","\u002Fdocs\u002Fadministration\u002Fapi-keys","docs\u002F5.administration\u002F2.api-keys",{"title":143,"path":144,"stem":145,"icon":23},"Processing settings","\u002Fdocs\u002Fadministration\u002Fprocessing-settings","docs\u002F5.administration\u002F3.processing-settings",{"title":147,"icon":148,"path":149,"stem":150,"children":151,"page":36},"Self-hosting","server","\u002Fdocs\u002Fself-hosting","docs\u002F6.self-hosting",[152,156,160,164,167,171,175,179,183,187],{"title":153,"path":154,"stem":155,"icon":23},"Architecture","\u002Fdocs\u002Fself-hosting\u002Farchitecture","docs\u002F6.self-hosting\u002F1.architecture",{"title":157,"path":158,"stem":159,"icon":23},"Telemetry","\u002Fdocs\u002Fself-hosting\u002Ftelemetry","docs\u002F6.self-hosting\u002F10.telemetry",{"title":161,"path":162,"stem":163,"icon":23},"Sharing one GPU","\u002Fdocs\u002Fself-hosting\u002Fgpu","docs\u002F6.self-hosting\u002F2.gpu",{"title":62,"path":165,"stem":166,"icon":23},"\u002Fdocs\u002Fself-hosting\u002Fstorage","docs\u002F6.self-hosting\u002F3.storage",{"title":168,"path":169,"stem":170,"icon":23},"Backups","\u002Fdocs\u002Fself-hosting\u002Fbackups","docs\u002F6.self-hosting\u002F4.backups",{"title":172,"path":173,"stem":174,"icon":23},"Updating","\u002Fdocs\u002Fself-hosting\u002Fupdating","docs\u002F6.self-hosting\u002F5.updating",{"title":176,"path":177,"stem":178,"icon":23},"Scaling","\u002Fdocs\u002Fself-hosting\u002Fscaling","docs\u002F6.self-hosting\u002F6.scaling",{"title":180,"path":181,"stem":182,"icon":23},"HTTPS and a domain","\u002Fdocs\u002Fself-hosting\u002Freverse-proxy","docs\u002F6.self-hosting\u002F7.reverse-proxy",{"title":184,"path":185,"stem":186,"icon":23},"Troubleshooting","\u002Fdocs\u002Fself-hosting\u002Ftroubleshooting","docs\u002F6.self-hosting\u002F8.troubleshooting",{"title":188,"path":189,"stem":190,"icon":23},"The config file","\u002Fdocs\u002Fself-hosting\u002Fconfig-file","docs\u002F6.self-hosting\u002F9.config-file",{"title":192,"icon":193,"path":194,"stem":195,"children":196,"page":36},"Reference","book","\u002Fdocs\u002Freference","docs\u002F7.reference",[197,201,205,209,213],{"title":198,"path":199,"stem":200,"icon":23},"Environment variables","\u002Fdocs\u002Freference\u002Fenvironment","docs\u002F7.reference\u002F1.environment",{"title":202,"path":203,"stem":204,"icon":23},"Worker roles","\u002Fdocs\u002Freference\u002Fworker-roles","docs\u002F7.reference\u002F2.worker-roles",{"title":206,"path":207,"stem":208,"icon":23},"API","\u002Fdocs\u002Freference\u002Fapi","docs\u002F7.reference\u002F3.api",{"title":210,"path":211,"stem":212,"icon":23},"Keyboard shortcuts","\u002Fdocs\u002Freference\u002Fkeyboard-shortcuts","docs\u002F7.reference\u002F4.keyboard-shortcuts",{"title":214,"path":215,"stem":216,"icon":23},"Models","\u002Fdocs\u002Freference\u002Fmodels","docs\u002F7.reference\u002F5.models",{"title":218,"icon":219,"path":220,"stem":221,"children":222,"page":36},"Hubstruct Cloud","cloud","\u002Fdocs\u002Fcloud","docs\u002F8.cloud",[223,227,231],{"title":224,"path":225,"stem":226,"icon":23},"Getting started with the cloud","\u002Fdocs\u002Fcloud\u002Fgetting-started","docs\u002F8.cloud\u002F1.getting-started",{"title":228,"path":229,"stem":230,"icon":23},"Plans and billing","\u002Fdocs\u002Fcloud\u002Fplans-and-billing","docs\u002F8.cloud\u002F2.plans-and-billing",{"title":232,"path":233,"stem":234,"icon":23},"Moving between cloud and self-hosted","\u002Fdocs\u002Fcloud\u002Fmoving","docs\u002F8.cloud\u002F3.moving",{"id":236,"title":214,"body":237,"description":513,"extension":514,"eyebrow":192,"icon":23,"meta":515,"navigation":516,"path":215,"seo":517,"stem":216,"__hash__":518},"docs\u002Fdocs\u002F7.reference\u002F5.models.md",{"type":238,"value":239,"toc":504},"minimark",[240,244,397,400,405,424,439,443,450,479,482,497,501],[241,242,243],"p",{},"Hubstruct uses open models, run as they are, on your own hardware (or ours, in the cloud). None is trained on your media, and nothing you add leaves the machine to reach them.",[245,246,247,266],"table",{},[248,249,250],"thead",{},[251,252,253,257,260,263],"tr",{},[254,255,256],"th",{},"Model",[254,258,259],{},"What it is",[254,261,262],{},"Used for",[254,264,265],{},"Served by",[267,268,269,291,306,321,337,352,367,382],"tbody",{},[251,270,271,282,285,288],{},[272,273,274,278,279],"td",{},[275,276,277],"strong",{},"Gemma 4 e2b"," or ",[275,280,281],{},"e4b",[272,283,284],{},"A vision-language model from Google",[272,286,287],{},"Descriptions, titles, reading text in pictures",[272,289,290],{},"llama.cpp",[251,292,293,298,301,304],{},[272,294,295],{},[275,296,297],{},"EmbeddingGemma 2",[272,299,300],{},"An embedding model for text and images, in one space",[272,302,303],{},"The document embedding, the image embedding, search queries",[272,305,290],{},[251,307,308,313,316,319],{},[272,309,310],{},[275,311,312],{},"d1 2B",[272,314,315],{},"A small decision model",[272,317,318],{},"Smart tag confidences, NSFW scores",[272,320,290],{},[251,322,323,328,331,334],{},[272,324,325],{},[275,326,327],{},"PP-OCR detector",[272,329,330],{},"A text detector",[272,332,333],{},"Finding whether, and where, a picture has text",[272,335,336],{},"vision",[251,338,339,344,347,350],{},[272,340,341],{},[275,342,343],{},"PP-OCR recogniser",[272,345,346],{},"A text reader",[272,348,349],{},"Reading each piece of text where it is, so it can be selected on the picture",[272,351,336],{},[251,353,354,359,362,365],{},[272,355,356],{},[275,357,358],{},"Face detectors",[272,360,361],{},"Detectors for real and drawn faces",[272,363,364],{},"Finding faces, and telling real from drawn",[272,366,336],{},[251,368,369,374,377,380],{},[272,370,371],{},[275,372,373],{},"ArcFace",[272,375,376],{},"A face embedding model",[272,378,379],{},"Real faces: telling people apart",[272,381,336],{},[251,383,384,389,392,395],{},[272,385,386],{},[275,387,388],{},"CCIP",[272,390,391],{},"A character embedding model",[272,393,394],{},"Drawn faces: telling characters apart",[272,396,336],{},[241,398,399],{},"Plain image code, with no model, does the rest: sharp for thumbnails, colors, sharpness and perceptual hashes, and ffmpeg for video frames.",[401,402,404],"h2",{"id":403},"gemma","Gemma",[241,406,407,408,411,412,415,416,419,420,423],{},"Gemma writes each media's ",[275,409,410],{},"description"," and ",[275,413,414],{},"title",", and reads its ",[275,417,418],{},"text"," once the detector has found some. Choose between two sizes in ",[275,421,422],{},"Settings → Processing",":",[425,426,427,433],"ul",{},[428,429,430,432],"li",{},[275,431,281],{}," (the default, 8 billion parameters) is more accurate, and better with small or stylized lettering.",[428,434,435,438],{},[275,436,437],{},"e2b"," (5.1 billion) is faster and lighter.",[401,440,442],{"id":441},"embeddinggemma","EmbeddingGemma",[241,444,445,446,449],{},"EmbeddingGemma turns text and pictures into vectors in ",[275,447,448],{},"one shared space",", so a search's words can be compared with a picture's pixels, and a picture with a description. Hubstruct makes two per media:",[425,451,452,469],{},[428,453,454,455,458,459,463,464,468],{},"the ",[275,456,457],{},"image embedding",", of the pixels alone (the ",[460,461,462],"code",{},"visual"," step), for ",[465,466,467],"em",{},"look"," searches and duplicates;",[428,470,454,471,474,475,478],{},[275,472,473],{},"document embedding",", of all the media's text with its picture (the ",[460,476,477],{},"embedding"," step), for everything else.",[401,480,481],{"id":481},"d1",[241,483,484,485,488,489,492,493,496],{},"d1 is a ",[275,486,487],{},"classifier",": for each question (",[465,490,491],{},"does this tag fit? is this NSFW?",") it gives the probability of ",[465,494,495],{},"yes",". Hubstruct asks all of a media's smart tags in one request, over one reading of it, and a GIF or video as a short clip the model watches through, so it's one judgment of the clip. It runs on the models server beside Gemma and EmbeddingGemma, started when tagging needs it.",[401,498,500],{"id":499},"faces","Faces",[241,502,503],{},"Real and drawn faces are found by separate detectors and embedded by separate models, ArcFace for real faces and CCIP for drawn ones, and are only ever compared with their own kind. Faces too blurry to recognize are left out before embedding.",{"title":505,"searchDepth":506,"depth":506,"links":507},"",3,[508,510,511,512],{"id":403,"depth":509,"text":404},2,{"id":441,"depth":509,"text":442},{"id":481,"depth":509,"text":481},{"id":499,"depth":509,"text":500},"The AI models Hubstruct uses, what each one does, and where it runs.","md",{},true,{"title":214,"description":513},"OirSQJpnzjbQGl2Tn0zBSJRSsqQD8FwFtfORDeOeo1I",[520,522],{"title":210,"path":211,"stem":212,"description":521,"children":-1},"Every keyboard shortcut in the app.",{"title":224,"path":225,"stem":226,"description":523,"children":-1},"Hubstruct Cloud, the hosted service. Signing up, what's the same as self-hosted, and what we look after for you.",1795744073451]