During low-precision training (POL=1), particularly with large output vocabularies (30,000-60,000 words), the final projection layer, converting internal representations to words, frequently exhibits accuracy issues.
During the backward pass, the final projection layer accumulates a large number of values (equal to the vocabulary size) for each output, using low-precision 16-bit arithmetic. This extensive accumulation can introduce inaccuracies, hindering convergence. Additionally, the inputs to this layer typically originate from a softmax cross-entropy layer, whose non-normal distribution deviates significantly from the typical normal distributions observed in most layers, further contributing to inaccuracy on the backward pass.
To mitigate potential convergence issues arising from numerical instability in the final projection layer during low-precision training (POL=1), a per-layer setting of POL=0 should be applied to this specific layer. This ensures the highest numerical precision for the final projection while maintaining the performance advantages of POL=1 throughout the rest of the model. This modification has already been incorporated into the Model Zoo variants of Cerebras large language models.
⌘I
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Cerebras Training","colors":{"primary":"#F1592A","light":"#FFFFFF","dark":"#0C0C0E"},"logo":{"light":"https://mintcdn.com/cerebras-training/hh6MqoQlI8YKsSkL/logo/2.svg?fit=max\u0026auto=format\u0026n=hh6MqoQlI8YKsSkL\u0026q=85\u0026s=9430343b4d9c7548560af71291450f1f","dark":"https://mintcdn.com/cerebras-training/hh6MqoQlI8YKsSkL/logo/1.svg?fit=max\u0026auto=format\u0026n=hh6MqoQlI8YKsSkL\u0026q=85\u0026s=5e459bac245b767748a20ecad9b86991"},"favicon":"https://mintcdn.com/cerebras-training/svm74p9sumHaelW6/favicon.png?fit=max\u0026auto=format\u0026n=svm74p9sumHaelW6\u0026q=85\u0026s=9fb0ab4fc01d95d9b772e28f11586850","background":{"decoration":"gradient"},"navbar":{"primary":{"type":"button","label":"Contact Us","href":"https://www.cerebras.net/contact-us/"}},"footer":{"socials":{"discord":"https://discord.com/invite/ZqvYS2e2rY","github":"https://github.com/Cerebras/modelzoo","linkedin":"https://www.linkedin.com/company/cerebras-systems","youtube":"https://www.youtube.com/channel/UCAAJD_MScghZj9R1cUZ3c8w"}},"fonts":{"heading":{"family":"Manrope"},"body":{"family":"Manrope"}},"styling":{"eyebrows":"breadcrumbs","latex":true},"integrations":{"gtm":{"tagId":"GTM-KBZT7S7N"}},"contextual":{"options":["copy","mcp","chatgpt","claude","perplexity","cursor","vscode"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.com/invite/ZqvYS2e2rY"},{"anchor":"API Reference","icon":"code","href":"https://training-api.cerebras.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cerebras-training","hasAudioNarration":false,"actualSubdomain":"cerebras-training","customDomains":["training-docs.cerebras.ai"],"gitSource":{"type":"github","owner":"cerebras","repo":"training-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae92248fb1d10c3791d397d:success","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Guides","count":505},{"language":"default","tag":"Explore \u0026 Learn","count":348},{"language":"default","tag":"Models","count":126},{"language":"default","tag":"Training and Eval","count":117},{"language":"default","tag":"Concepts \u0026 Guides","count":112},{"language":"default","tag":"Language Models","count":96},{"language":"default","tag":"Tutorials","count":96},{"language":"default","tag":"Writing a Custom Training Loop","count":91},{"language":"default","tag":"Trainer Components","count":80},{"language":"default","tag":"Data Preparation","count":78}]},"assistantConfig":{"deflection":{"enabled":false,"showHelpButton":false}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 300;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 300;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 300;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 300;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 300;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 300;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggqxSuXd.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggOxSuXd.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* greek */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggSxSuXd.woff2) format('woff2');\n unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggixSuXd.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggmxSuXd.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Manrope';\n font-style: normal;\n font-weight: 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/manrope/v23/xn7gYHE41ni1AdIRggexSg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Sometype Mono';\n font-style: italic;\n font-weight: 400 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sometypemono/v4/70lLu745KGk_R3uxyq0WrROhKpGRTW9Gzm8.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Sometype Mono';\n font-style: italic;\n font-weight: 400 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sometypemono/v4/70lLu745KGk_R3uxyq0WrROhKpGRQ29G.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Sometype Mono';\n font-style: normal;\n font-weight: 400 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sometypemono/v4/70lVu745KGk_R3uxyq0WrROhKpqhQXdC.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Sometype Mono';\n font-style: normal;\n font-weight: 400 700;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/sometypemono/v4/70lVu745KGk_R3uxyq0WrROhKpShQQ.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n#navbar .h-6{height:4.5rem;padding-top:3px;padding-bottom:3px}:root{--cerebras-brand-50: #F1592A;--cerebras-brand-55: #C0441F;--cerebras-interactive-10: #F2F9FB;--cerebras-interactive-50: #F1592A;--cerebras-interactive-55: #C0441F;--cerebras-neutral-90: #1B1A1E;--cerebras-neutral-95: #161519;--cerebras-neutral-15: #EAEAEB;--cerebras-neutral-60: #424049;--cerebras-shadow-soft: 0px 1px 4px 0px #0000000F;--cerebras-shadow-soft-md: 0px 2px 6px 1px #0000000F}html,body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:geometricPrecision;font-family:'Manrope', ui-sans-serif, system-ui, -apple-system,\n BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'}link{color:inherit;text-decoration-color:var(--cerebras-brand-55)}link:hover{color:var(--cerebras-brand-50);text-decoration-color:var(--cerebras-brand-50)}#content-area :is(p,li,td,th,blockquote) a:focus-visible{outline:2px dashed var(--cerebras-brand-55);outline-offset:2px}#sidebar-title{text-transform:uppercase!important;font-family:\"Sometype Mono\"}#content-area{max-width:80ch;margin:0 auto;font-size:0.95rem;line-height:1.55}#content-area table{width:100%;color:var(--cerebras-neutral-95);background:#FFFFFF;border:1px solid var(--cerebras-neutral-15);border-radius:0.75rem;box-shadow:var(--cerebras-shadow-soft);overflow:hidden}#content-area thead tr{border-bottom:2px solid var(--cerebras-neutral-15)}#content-area tbody tr{border-bottom:1px solid var(--cerebras-neutral-15)}#content-area tbody tr:last-child{border-bottom:0}#content-area :is(th,td){padding:0.5rem;vertical-align:top}html[style*=\"color-scheme: dark\"] #content-area table,html[style*=\"color-scheme:dark\"] #content-area table{color:var(--cerebras-neutral-15);background:var(--cerebras-neutral-95);border-color:var(--cerebras-neutral-60)}html[style*=\"color-scheme: dark\"] #content-area thead tr,html[style*=\"color-scheme:dark\"] #content-area thead tr{border-bottom-color:var(--cerebras-neutral-60)}html[style*=\"color-scheme: dark\"] #content-area tbody tr,html[style*=\"color-scheme:dark\"] #content-area tbody tr{border-bottom-color:var(--cerebras-neutral-60)}#content-area td:first-child{font-weight:600}#content-area :is(h1,h2,h3){letter-spacing:-0.02em}#content-area :is(h1,h2){font-weight:600}#content-area :is(h3,h4){font-weight:600}#table-of-contents-content{text-transform:uppercase!important;font-family:\"Sometype Mono\"}.bg-\\[\\#F4F4F5\\]{--tw-bg-opacity: 1;background-color:#EBEBEB}"}],"page":{"pagePath":"rel-2.4.0/support/troubleshooting/numerical-issues","slug":"/rel-2.4.0/support/troubleshooting/numerical-issues","pageMetadata":{"title":" Numerical Issues ","description":null,"href":"/rel-2.4.0/support/troubleshooting/numerical-issues"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components},{Heading}=_components;if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`observed-error`,children:`Observed Error`}),`\n`,_jsx(_components.p,{children:`During low-precision training (POL=1), particularly with large output vocabularies (30,000-60,000 words), the final projection layer, converting internal representations to words, frequently exhibits accuracy issues.`}),`\n`,_jsx(Heading,{level:`2`,id:`explanation`,children:`Explanation`}),`\n`,_jsx(_components.p,{children:`During the backward pass, the final projection layer accumulates a large number of values (equal to the vocabulary size) for each output, using low-precision 16-bit arithmetic. This extensive accumulation can introduce inaccuracies, hindering convergence. Additionally, the inputs to this layer typically originate from a softmax cross-entropy layer, whose non-normal distribution deviates significantly from the typical normal distributions observed in most layers, further contributing to inaccuracy on the backward pass.`}),`\n`,_jsx(Heading,{level:`2`,id:`work-around`,children:`Work around`}),`\n`,_jsx(_components.p,{children:`To mitigate potential convergence issues arising from numerical instability in the final projection layer during low-precision training (POL=1), a per-layer setting of POL=0 should be applied to this specific layer. This ensures the highest numerical precision for the final projection while maintaining the performance advantages of POL=1 throughout the rest of the model. This modification has already been incorporated into the Model Zoo variants of Cerebras large language models.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":" Numerical Issues ","description":null,"href":"/rel-2.4.0/support/troubleshooting/numerical-issues"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Observed Error","slug":"observed-error","depth":2,"children":[]},{"title":"Explanation","slug":"explanation","depth":2,"children":[]},{"title":"Work around","slug":"work-around","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"cerebras-training","siteName":"Cerebras Training","title":" Numerical Issues - Cerebras Training","navMaps":{"firstHrefInVersion":{"rel-2.5.0":{"href":"/rel-2.5.0/getting-started/overview","matchLevel":4},"rel-2.10.0-beta":{"href":"/rel-2.10.0/support/troubleshooting","matchLevel":2},"rel-2.9.0-beta":{"href":"/rel-2.9.0/getting-started/overview","matchLevel":4},"rel-2.8.0-beta":{"href":"/rel-2.8.0/getting-started/overview","matchLevel":4},"rel-2.7.0-beta":{"href":"/rel-2.7.0/getting-started/overview","matchLevel":4},"rel-2.6.0-beta":{"href":"/rel-2.6.0/getting-started/overview","matchLevel":4},"rel-2.4.0":{"href":"/rel-2.4.0/support/troubleshooting/numerical-issues","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-06-15T17:54:53.295Z","originalFileLocation":"rel-2.4.0/support/troubleshooting/numerical-issues.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Cerebras Training\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cerebras-training/kLGG7BxUKv2Tig4k/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cerebras-training/kLGG7BxUKv2Tig4k/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cerebras-training/kLGG7BxUKv2Tig4k/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cerebras-training/kLGG7BxUKv2Tig4k/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cerebras-training/kLGG7BxUKv2Tig4k/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cerebras-training/kLGG7BxUKv2Tig4k/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cerebras-training/kLGG7BxUKv2Tig4k/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cerebras-training/kLGG7BxUKv2Tig4k/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cerebras-training/kLGG7BxUKv2Tig4k/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\" Numerical Issues - Cerebras Training\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cerebras Training\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://training-docs.cerebras.ai/rel-2.4.0/support/troubleshooting/numerical-issues\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cerebras-training.mintlify.site/_mintlify/api/og/v2?division=Troubleshooting\u0026amp;title=+Numerical+Issues+\u0026amp;theme=dc7fc330e54df6659e7a2b3e\u0026amp;signature=fc846259155d0e2f7d5550977d0ed7475998546fc5d50e89243c5db6abef14a5\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\" Numerical Issues - Cerebras Training\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cerebras-training.mintlify.site/_mintlify/api/og/v2?division=Troubleshooting\u0026amp;title=+Numerical+Issues+\u0026amp;theme=dc7fc330e54df6659e7a2b3e\u0026amp;signature=fc846259155d0e2f7d5550977d0ed7475998546fc5d50e89243c5db6abef14a5\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cerebras-training/kLGG7BxUKv2Tig4k/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cerebras Training\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F1592A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://training-docs.cerebras.ai/rel-2.4.0/support/troubleshooting/numerical-issues\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/rel-2.4.0/support/troubleshooting/numerical-issues.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://training-docs.cerebras.ai/#organization\",\"name\":\"Cerebras Training\",\"url\":\"https://training-docs.cerebras.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cerebras-training/hh6MqoQlI8YKsSkL/logo/2.svg?fit=max\u0026auto=format\u0026n=hh6MqoQlI8YKsSkL\u0026q=85\u0026s=9430343b4d9c7548560af71291450f1f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://training-docs.cerebras.ai#website\",\"name\":\"Cerebras Training\",\"url\":\"https://training-docs.cerebras.ai\",\"publisher\":{\"@id\":\"https://training-docs.cerebras.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://training-docs.cerebras.ai/rel-2.4.0/support/troubleshooting/numerical-issues#webpage\",\"url\":\"https://training-docs.cerebras.ai/rel-2.4.0/support/troubleshooting/numerical-issues\",\"name\":\" Numerical Issues \",\"dateModified\":\"2026-06-15T17:54:53.295Z\",\"isPartOf\":{\"@id\":\"https://training-docs.cerebras.ai#website\"},\"breadcrumb\":{\"@id\":\"https://training-docs.cerebras.ai/rel-2.4.0/support/troubleshooting/numerical-issues#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://training-docs.cerebras.ai/rel-2.4.0/support/troubleshooting/numerical-issues#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Support\",\"item\":\"https://training-docs.cerebras.ai/rel-2.4.0/support/previous-releases\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Troubleshooting\",\"item\":\"https://training-docs.cerebras.ai/rel-2.4.0/support/troubleshooting\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\" Numerical Issues \",\"item\":\"https://training-docs.cerebras.ai/rel-2.4.0/support/troubleshooting/numerical-issues\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://training-docs.cerebras.ai/rel-2.4.0/support/troubleshooting/numerical-issues#article\",\"headline\":\" Numerical Issues \",\"name\":\" Numerical Issues \",\"url\":\"https://training-docs.cerebras.ai/rel-2.4.0/support/troubleshooting/numerical-issues\",\"mainEntityOfPage\":{\"@id\":\"https://training-docs.cerebras.ai/rel-2.4.0/support/troubleshooting/numerical-issues#webpage\"},\"dateModified\":\"2026-06-15T17:54:53.295Z\",\"publisher\":{\"@id\":\"https://training-docs.cerebras.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://training-docs.cerebras.ai#website\"}}]}\u003c/script>","agentPointerHref":"/rel-2.4.0/support/troubleshooting/numerical-issues.md","siteName":"Cerebras Training","nav":{"global":{"anchors":[{"anchor":"Community","icon":"discord","href":"https://discord.com/invite/ZqvYS2e2rY"},{"anchor":"API Reference","icon":"code","href":"https://training-api.cerebras.ai"}]},"versions":[{"version":"rel-2.5.0","pages":[{"title":"rel-2.5.0","href":"/rel-2.5.0/getting-started/overview"}]},{"version":"rel-2.10.0-beta","pages":[{"title":"rel-2.10.0-beta","href":"/rel-2.10.0/support/troubleshooting"}]},{"version":"rel-2.9.0-beta","pages":[{"title":"rel-2.9.0-beta","href":"/rel-2.9.0/getting-started/overview"}]},{"version":"rel-2.8.0-beta","pages":[{"title":"rel-2.8.0-beta","href":"/rel-2.8.0/getting-started/overview"}]},{"version":"rel-2.7.0-beta","pages":[{"title":"rel-2.7.0-beta","href":"/rel-2.7.0/getting-started/overview"}]},{"version":"rel-2.6.0-beta","pages":[{"title":"rel-2.6.0-beta","href":"/rel-2.6.0/getting-started/overview"}]},{"version":"rel-2.4.0","tabs":[{"tab":"Concepts \u0026 Guides","groups":[{"group":"Getting Started","pages":[{"title":"Get Started with Cerebras","href":"/rel-2.4.0/getting-started/overview"},{"title":"Setup and Installation","href":"/rel-2.4.0/getting-started/setup-and-installation"},{"title":"Pre Train Your First Model","href":"/rel-2.4.0/getting-started/pre-train-your-first-model"},{"title":"Fine Tune Your First Model","href":"/rel-2.4.0/getting-started/fine-tune-your-first-model"},{"title":"Current Release Highlights","href":"/rel-2.4.0/getting-started/current-release-highlights"}]},{"group":"Concepts","pages":[{"title":"Cerebras Wafer Scale Cluster","href":"/rel-2.4.0/concepts/cerebras-wafer-scale-cluster"},{"title":"Weight Streaming Execution","href":"/rel-2.4.0/concepts/weight-streaming-execution"}]},{"group":"Model Zoo","pages":[{"title":"Model Zoo Overview","href":"/rel-2.4.0/model-zoo/model-zoo-overview"},{"title":"Model Zoo CLI Overview","href":"/rel-2.4.0/model-zoo/cli-overview"},{"title":"Trainer Overview","href":"/rel-2.4.0/model-zoo/trainer-overview"},{"group":"Trainer Configuration Overview","pages":[{"title":"Trainer Configuration Overview","href":"/rel-2.4.0/model-zoo/trainer-configuration-overview"},{"title":"Convert Legacy to Trainer YAML","href":"/rel-2.4.0/model-zoo/trainer-configuration-overview/correspondance-from-legacy-to-trainer"}]},{"group":"Core Workflows","pages":[{"title":"Overview","href":"/rel-2.4.0/model-zoo/core-workflows"},{"title":"Quickstart: Preprocess Your Data","href":"/rel-2.4.0/model-zoo/core-workflows/quickstart-guide-for-data-preprocessing"},{"title":"Pretraining With Upstream Validation","href":"/rel-2.4.0/model-zoo/core-workflows/pretraining-with-upstream-validation"},{"title":"Downstream Validation Using Eleuther Eval Harness","href":"/rel-2.4.0/model-zoo/core-workflows/downstream-validation-using-eleuther-eval-harness"},{"title":"Downstream Validation Using Bigcode Eval Harness","href":"/rel-2.4.0/model-zoo/core-workflows/downstream-validation-using-bigcode-eval-harness"},{"title":"Pretraining With Downstream Validation","href":"/rel-2.4.0/model-zoo/core-workflows/pretraining-with-downstream-validation"},{"title":"Fine Tuning With Validation","href":"/rel-2.4.0/model-zoo/core-workflows/fine-tuning-with-validation"},{"title":"Multi Phase Training","href":"/rel-2.4.0/model-zoo/core-workflows/multi-phase-training"},{"title":"Summarize Scalars And Tensors","href":"/rel-2.4.0/model-zoo/core-workflows/summarize-scalars-and-tensors"}]},{"group":"Tutorials","pages":[{"title":"Extend Context Length Using Position Interpolation","href":"/rel-2.4.0/model-zoo/tutorials/extend-context-length-using-position-interpolation"},{"title":"Train An LLM With A Large Or Small Context Window ","href":"/rel-2.4.0/model-zoo/tutorials/train-an-llm-with-a-large-or-small-context-window"},{"title":" Instruction Fine Tuning For Llms ","href":"/rel-2.4.0/model-zoo/tutorials/instruction-fine-tuning-for-llms"},{"title":" Train A Model With Weight Sparsity","href":"/rel-2.4.0/model-zoo/tutorials/train-a-model-with-weight-sparsity"},{"title":"Optimize Performance with Automatic Microbatching ","href":"/rel-2.4.0/model-zoo/tutorials/optimize-performance-with-automatic-microbatching"},{"group":"Train An Llm Using Maximal Update Parameterization","pages":[{"title":"Train An LLM Using Maximal Update Parameterization","href":"/rel-2.4.0/model-zoo/tutorials/training-an-llm-using-maximal-update-parameterization/overview"},{"title":"Configure μP For GPT Style Model","href":"/rel-2.4.0/model-zoo/tutorials/training-an-llm-using-maximal-update-parameterization/configure-mp-for-gpt-style-models"},{"title":"Configure μP For Bert Pretrain Beta","href":"/rel-2.4.0/model-zoo/tutorials/training-an-llm-using-maximal-update-parameterization/configure-mp-for-bert-pretrain--beta"},{"title":"Configure μP For T5 Beta ","href":"/rel-2.4.0/model-zoo/tutorials/training-an-llm-using-maximal-update-parameterization/configure-mp-for-t5--beta"}]},{"title":" Train An Llm Using Maximal Update Parameterization With Legacy Params","href":"/rel-2.4.0/model-zoo/tutorials/train-an-llm-using-maximal-update-parameterization-with-legacy-params"},{"title":"Dynamic Loss Scaling","href":"/rel-2.4.0/model-zoo/tutorials/dynamic-loss-scaling"},{"title":" Training With Number Of Tokens Loss Scaling ","href":"/rel-2.4.0/model-zoo/tutorials/training-with-number-of-tokens-loss-scaling"}]},{"group":"Components","pages":[{"title":"Overview","href":"/rel-2.4.0/model-zoo/components/components"},{"group":"Data preprocessing","pages":[{"title":"Data Preprocessing","href":"/rel-2.4.0/model-zoo/components/data-preprocessing/data-preprocessing"},{"title":"Input Data Configuration","href":"/rel-2.4.0/model-zoo/components/data-preprocessing/input-data-configuration"},{"title":"Read Hooks","href":"/rel-2.4.0/model-zoo/components/data-preprocessing/read-hooks"},{"title":"Write a Custom Read Hook","href":"/rel-2.4.0/model-zoo/components/data-preprocessing/semantic-regions"},{"title":"Token Generators ","href":"/rel-2.4.0/model-zoo/components/data-preprocessing/token-generators"},{"title":"Custom Tokenizer ","href":"/rel-2.4.0/model-zoo/components/data-preprocessing/custom-tokenizer"},{"title":"On-The-Fly Data Processing","href":"/rel-2.4.0/model-zoo/components/data-preprocessing/on-the-fly-data-processing"},{"title":"Online Shuffling in HDF5 File Storage","href":"/rel-2.4.0/model-zoo/components/data-preprocessing/online-shuffling-in-hdf5-file-storage"},{"title":" Visualization and Debugging","href":"/rel-2.4.0/model-zoo/components/data-preprocessing/visualization-and-debugging"}]},{"group":"Dataloaders","pages":[{"title":"Dataloaders","href":"/rel-2.4.0/model-zoo/components/dataloaders/dataloaders"},{"title":"Creating Custom Dataloaders","href":"/rel-2.4.0/model-zoo/components/dataloaders/creating-custom-dataloaders"},{"title":" Dataloaders for Pytorch","href":"/rel-2.4.0/model-zoo/components/dataloaders/dataloaders-for-pytorch"}]},{"title":"Data Deduplication Pipeline ","href":"/rel-2.4.0/model-zoo/components/data-deduplication-pipeline"},{"group":"Trainer components","pages":[{"title":"Trainer Components","href":"/rel-2.4.0/model-zoo/components/trainer-components/trainer-components"},{"title":"Model Directory","href":"/rel-2.4.0/model-zoo/components/trainer-components/model-directory"},{"title":"Backend","href":"/rel-2.4.0/model-zoo/components/trainer-components/backend"},{"title":"Model","href":"/rel-2.4.0/model-zoo/components/trainer-components/model"},{"title":"Loop","href":"/rel-2.4.0/model-zoo/components/trainer-components/loop"},{"title":"Numeric Precision","href":"/rel-2.4.0/model-zoo/components/trainer-components/numeric-precision"},{"title":"Optimizer And Scheduler","href":"/rel-2.4.0/model-zoo/components/trainer-components/optimizer-and-scheduler"},{"title":" Checkpointing ","href":"/rel-2.4.0/model-zoo/components/trainer-components/checkpointing"},{"title":"Logging","href":"/rel-2.4.0/model-zoo/components/trainer-components/logging"},{"title":"Reproducibility","href":"/rel-2.4.0/model-zoo/components/trainer-components/reproducibility"},{"title":"Customizing the Trainer with Callbacks","href":"/rel-2.4.0/model-zoo/components/trainer-components/customizing-the-trainer-with-callbacks"},{"title":"Defer Weight Initialization","href":"/rel-2.4.0/model-zoo/components/trainer-components/defer-weight-initialization"},{"title":"Performance Flags","href":"/rel-2.4.0/model-zoo/components/trainer-components/performance-flags"}]},{"title":"Model Zoo Config Classes","href":"/rel-2.4.0/model-zoo/components/model-zoo-config-classes"},{"title":"Model Zoo Usage Examples","href":"/rel-2.4.0/model-zoo/components/model-zoo-usage-examples"},{"title":"Model Zoo Registry","href":"/rel-2.4.0/model-zoo/components/model-zoo-registry"}]},{"group":"Migration","pages":[{"title":"Convert a Trained and Finetuned Model to Hugging Face","href":"/rel-2.4.0/model-zoo/migration/port-a-trained-and-fine-tuned-model-to-hugging-face"},{"title":"Convert a Hugging Face Model to Cerebras Model Zoo ","href":"/rel-2.4.0/model-zoo/migration/port-a-hugging-face-model-to-cerebras-model-zoo"},{"title":"Port Pytorch Models To Cerebras","href":"/rel-2.4.0/model-zoo/migration/porting-pytorch-models-to-cerebras"},{"group":"Convert Checkpoints and Model Configs","pages":[{"title":"Convert Checkpoints and Model Configs","href":"/rel-2.4.0/model-zoo/migration/convert-checkpoints-and-model-configs/convert-checkpoints-and-model-configs"},{"title":"Work with Cerebras Checkpoints","href":"/rel-2.4.0/model-zoo/migration/convert-checkpoints-and-model-configs/work-with-cerebras-checkpoints"}]}]}]},{"group":"CS Torch","pages":[{"group":"Writing a Custom Training Loop","pages":[{"title":"Writing a Custom Training Loop","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop"},{"title":"Step Closures","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/step-closures"},{"title":"Saving Loading Checkpoint","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/saving-loading-checkpoints"},{"title":"Efficient Weight Initialization ","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/efficient-weight-initialization"},{"title":"Writing Custom Optimizers ","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/writing-custom-optimizers"},{"title":"Learning Rate Scheduling","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/learning-rate-scheduling"},{"title":"Gradient Scaling","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/gradient-scaling"},{"title":"Sparsifying Models ","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/sparsifying-models"},{"title":"Restartable Dataloaders ","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/restartable-dataloaders"},{"title":"Profiling the Executor ","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/profiling-the-executor"},{"title":"Evaluation Metrics ","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/evaluation-metrics"},{"title":"Per Layer Precision Optimization Level ","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/per-layer-precision-optimization-level"},{"title":"Limitations of Pytorch on Cerebras","href":"/rel-2.4.0/cs-torch/writing-a-custom-training-loop/limitations-of-pytorch-on-cerebras"}]}]},{"group":"Cluster Monitoring","pages":[{"title":"Cerebras Job Scheduling and Monitoring","href":"/rel-2.4.0/cluster-monitoring/cerebras-job-scheduling-and-monitoring"},{"title":"CLI for Job Monitoring ","href":"/rel-2.4.0/cluster-monitoring/cerebras-job-scheduling-and-monitoring/cli-for-job-monitoring-csctl"},{"title":" Job Priority ","href":"/rel-2.4.0/cluster-monitoring/cerebras-job-scheduling-and-monitoring/job-priority"},{"title":" Cluster Monitoring With Grafana ","href":"/rel-2.4.0/cluster-monitoring/cerebras-job-scheduling-and-monitoring/cluster-monitoring-with-grafana"}]},{"group":"Fundamentals","pages":[{"group":"Launch Your Job","pages":[{"title":"Launch Your Job","href":"/rel-2.4.0/fundamentals/launch-your-job"},{"title":" Cerebras Cluster Settings ","href":"/rel-2.4.0/fundamentals/launch-your-job/cerebras-cluster-settings"}]},{"title":"Kernel Autogeneration with Autogen","href":"/rel-2.4.0/fundamentals/kernel-autogeneration-with-autogen"},{"title":"Define Environment Variables For Input Workers","href":"/rel-2.4.0/fundamentals/define-environment-variables-for-input-workers"},{"title":"Import User Dependencies In Cerebras","href":"/rel-2.4.0/fundamentals/import-user-dependencies-in-cerebras"},{"title":"Special Considerations For Cv Dataloaders","href":"/rel-2.4.0/fundamentals/special-considerations-for-cv-dataloaders"},{"title":"Measure Throughput of Your Model","href":"/rel-2.4.0/fundamentals/measure-throughput-of-your-model"},{"title":"Managing Cluster Access Controls","href":"/rel-2.4.0/fundamentals/managing-cluster-access-controls"}]},{"group":"Support","pages":[{"title":"Previous Releases","href":"/rel-2.4.0/support/previous-releases"},{"group":"Troubleshooting","pages":[{"title":"Troubleshooting","href":"/rel-2.4.0/support/troubleshooting"},{"title":"Cannot Load Cerebras Checkpoints in GPUs","href":"/rel-2.4.0/support/troubleshooting/cannot-load-cerebras-checkpoints-in-gpus"},{"title":"Custom Pt Training Script Spawns Multiple Compile Jobs","href":"/rel-2.4.0/support/troubleshooting/custom-pt-training-script-spawns-multiple-compile-jobs"},{"title":" Loss Compilation Issues With Autogen ","href":"/rel-2.4.0/support/troubleshooting/loss-compilation-issues-with-autogen"},{"title":" Error Parsing Metadata ","href":"/rel-2.4.0/support/troubleshooting/error-parsing-metadata"},{"title":" Error Receiving Activation ","href":"/rel-2.4.0/support/troubleshooting/error-receiving-activation"},{"title":"Failed Mount Directory During Execution","href":"/rel-2.4.0/support/troubleshooting/failed-mount-directory-during-execution"},{"title":" Failing To Automatically Load Checkpoints ","href":"/rel-2.4.0/support/troubleshooting/failing-to-automatically-load-checkpoints"},{"title":"Failure To Trace Due To Functionalization Error","href":"/rel-2.4.0/support/troubleshooting/failure-to-trace-due-to-functionalization-error"},{"title":" Input Starvation ","href":"/rel-2.4.0/support/troubleshooting/input-starvation"},{"title":" Out Of Memory Errors And System Resources ","href":"/rel-2.4.0/support/troubleshooting/out-of-memory-errors-and-system-resources"},{"title":"Model Is Too Large To Fit In Memory","href":"/rel-2.4.0/support/troubleshooting/model-is-too-large-to-fit-in-memory"},{"title":" Modulenotfounderror ","description":null,"href":"/rel-2.4.0/support/troubleshooting/modulenotfounderror"},{"title":" Numerical Issues ","href":"/rel-2.4.0/support/troubleshooting/numerical-issues"},{"title":"Throughput Spike After Saving Checkpoints","description":null,"href":"/rel-2.4.0/support/troubleshooting/throughput-spike-after-saving-checkpoints"},{"title":" Training Fails When Logged In As Root ","href":"/rel-2.4.0/support/troubleshooting/training-fails-when-logged-in-as-root"},{"title":" Vocabulary Size Troubleshooting ","href":"/rel-2.4.0/support/troubleshooting/vocabulary-size-troubleshooting"}]},{"title":"Glossary","href":"/rel-2.4.0/support/glossary"}]}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/rel-2.4.0/release-notes/release-notes-tabs"}]}]}]},"basePath":"","title":" Numerical Issues - Cerebras Training","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":[],"chunks":[]}