alt.freeweights.text / stablecode-completion-alpha-3b-4k
From: stabilityai <huggingface.co/stabilityai>Newsgroups: alt.freeweights.textSubject:

stablecode-completion-alpha-3b-4k

Date: 2026-11-15Commit: 7ccb140Signed: 2DC28CC7B26A283B ✓

Text generation model with 3.3B parameters. Safetensors weights, 12.2 GB in all. Published by stabilityai under Apache-2.0.

3.3B params12.2GBstablecode-completion-alpha-3b-4ksafetensorspermissive
FactsParams3.3BSize12.2 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get stabilityai/stablecode-completion-alpha-3b-4k
# manifest sha256 d29b412c15d7… · 12.2 GB · 9 files
$ fw verify ./stablecode-completion-alpha-3b-4k stabilityai/stablecode-completion-alpha-3b-4k
From sourceHosted (signed)stabilityai/stablecode-completion-alpha-3b-4kLast check: 2026-11-15 03:41 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Runs withAIBrixBentoMLCTranslate2ExLlamaV2ExLlamaV3exofastllmFlashInfergpu-unlockKTransformersLitServeLMCacheLMDeployLocalAImistral.rsMLC LLMMooncakeSGLangText Generation WebUItinygradTransformersTriton Inference ServervLLMXinferenceFine-tune withAccelerateAlignment HandbookAxolotlColossal-AIDeepSpeedEasyR1FlashAttentionH2O LLM StudioJAXKerasLiger KernelLitGPTLLaMA-FactoryMegatron-LMms-swiftnanotronOLMo-coreOpenRLHFOumiPEFTPyTorch Lightningsd-scriptsSimpleTunerTorchTitantorchtuneTransformer EngineTRLUnslothverlConvert withAQLMAutoRoundCore ML ToolsExecuTorchGPTQModelLLM CompressormergekitNeural CompressorOliveONNXOptimum QuantoOptimumsafetensorsTensorRT Model OptimizertorchaoEvaluate withAutoevalsDeepEvalEvaluateHELMLightEvallm-evaluation-harnessOpenCompassOpikRagassimple-evalsSWE-benchTruLensWeaveScan withAgentDojoAI Fairness 360DeepTeamDetoxifyFairlearngarakGiskardGuardrailsMCP ScannerModelScanNeMo GuardrailspicklescanpromptfooWorks withAgent Development KitAG2Google AI Edge GalleryAiderany-llmAnythingLLMBAMLbrowser-useCAMELHugging Face Chat UIChatboxCherry StudioClineCodex CLICogneeCrewAIDeerFlowDSPyEnchantedGemini CLIGitHub MCP ServergooseGPT ResearcherGradioGraphitiGuidanceHollamaInstructorKilo CodeLangflowLangGraphLiteLLMLlamaIndexLLMLocalAGILoLLMs WebUIMCP Python SDKMem0MetaGPTNextChatOllama JavaScriptOllama PythonOpenAI Agents SDKopencodeOpenHandsotermOutlinesPage AssistPlaywright MCPPortkey AI GatewayPrivateGPTQwen CodeRWKV RunnerSemantic KernelsmolagentsStrands AgentsVaneXGrammar

Overview

Size
12.2 GB
Weights
6.08 GB (safetensors)
Parameters
3.3B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
9, each with a sha256
Publisher
stabilityai
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:41 UTCpassed

Model card

From the publisher at commit 7ccb140. Shown as plain text with links; images open at the publisher.

StableCode-Completion-Alpha-3B-4K#

Model Description#

StableCode-Completion-Alpha-3B-4K is a 3 billion parameter decoder-only code completion model pre-trained on diverse set of programming languages that topped the stackoverflow developer survey.

Usage#

The model is intended to do single/multiline code completion from a long context window upto 4k tokens. Get started generating code with StableCode-Completion-Alpha-3B-4k by using the following code snippet:

from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("stabilityai/stablecode-completion-alpha-3b-4k")
model = AutoModelForCausalLM.from_pretrained(
  "stabilityai/stablecode-completion-alpha-3b-4k",
  trust_remote_code=True,
  torch_dtype="auto",
)
model.cuda()
inputs = tokenizer("import torch\nimport torch.nn as nn", return_tensors="pt").to("cuda")
tokens = model.generate(
  **inputs,
  max_new_tokens=48,
  temperature=0.2,
  do_sample=True,
)
print(tokenizer.decode(tokens[0], skip_special_tokens=True))

Model Details#

  • Developed by: Stability AI
  • Model type: StableCode-Completion-Alpha-3B-4k models are auto-regressive language models based on the transformer decoder architecture.
  • Language(s): Code
  • Library: GPT-NeoX
  • License: Model checkpoints are licensed under the Apache 2.0 license.
  • Contact: For questions and comments about the model, please email lm@stability.ai
Model Architecture#
ParametersHidden SizeLayersHeadsSequence Length
2,796,431,360256032324096
  • Decoder Layer: Parallel Attention and MLP residuals with a single input LayerNorm (Wang & Komatsuzaki, 2021)
  • Position Embeddings: Rotary Position Embeddings (Su et al., 2021)
  • Bias: LayerNorm bias terms only

Training#

StableCode-Completion-Alpha-3B-4k is pre-trained at a context length of 4096 for 300 billion tokens on the bigcode/starcoder-data.

Training Dataset#

The first pre-training stage relies on 300B tokens sourced from various top programming languages occuring in the stackoverflow developer survey present in the starcoder-data dataset.

Training Procedure#

The model is pre-trained on the dataset mixes mentioned above in mixed-precision BF16), optimized with AdamW, and trained using the StarCoder tokenizer with a vocabulary size of 49k.

Use and Limitations#

Intended Use#

StableCode-Completion-Alpha-3B-4K independently generates new code completions, but we recommend that you use StableCode-Completion-Alpha-3B-4K together with the tool developed by BigCode and HuggingFace (huggingface/huggingface-vscode: Code completion VSCode extension for OSS models (github.com)), to identify and, if necessary, attribute any outputs that match training code.

Limitations and bias#

This model is intended to be used responsibly. It is not intended to be used to create unlawful content of any kind, to further any unlawful activity, or to engage in activities with a high risk of physical or economic harm.

How to cite#

@misc{StableCodeCompleteAlpha4K, 
      url={[https://huggingface.co/stabilityai/stablecode-complete-alpha-3b-4k](https://huggingface.co/stabilityai/stablecode-complete-alpha-3b-4k)}, 
      title={Stable Code Complete Alpha}, 
      author={Adithyan, Reshinth and Phung, Duy and Cooper, Nathan and Pinnaparaju, Nikhil and Laforte, Christian}
}

Files

9 files · 12.2 GBWeights 6.08 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 9 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md4.77 KB102d6eb6e3ce82deefff42b2277a1f2444b6f95faf42c95c1d3cf0d3754110e3
config.json600 B8a98ebb2ab8f96d880de0f36028b275ec640f9dc35b56c25aa776d2b4cdc95e8
generation_config.json111 B110e38640986e8470cc61c3414874d45567f0f25db95dd3b717152f0e414b1b2
model.safetensors6.08 GB735f6daa3494b922e0c890eef130f8efddc27480e70f80ba9593aa5a37b58c31
pytorch_model.bin6.08 GB9d35a68e0076eb4e1b6d671ba5a329a83384cf97cdd04a269ffd9e9d370a0182
special_tokens_map.json3 Bca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356
tokenizer.json2.06 MB9af07a3123a1f4d75dcb85fbdc4c62f9b7873d23fa39c449d2240c3e33eb3ab5
tokenizer_config.json146 B0bd6e22165bbd9bccd0afd612874c01f07a20b1f8a8b9fa157c73e7e127dcac4
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
7ccb1408b3 pinned now2026-11-15 03:41 UTC9 files · 12.2 GB

Use it

$ fw get stabilityai/stablecode-completion-alpha-3b-4k
# manifest sha256 d29b412c15d7… · 12.2 GB · 9 files
$ fw verify ./stablecode-completion-alpha-3b-4k stabilityai/stablecode-completion-alpha-3b-4k
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/stabilityai/stablecode-completion-alpha-3b-4k.json --dir ./stablecode-completion-alpha-3b-4k $ python3 fw.py verify ./stablecode-completion-alpha-3b-4k ./stabilityai__stablecode-completion-alpha-3b-4k.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download stabilityai/stablecode-completion-alpha-3b-4k --revision 7ccb1408b35c33832be9760138d621196e524866 --local-dir ./stablecode-completion-alpha-3b-4k
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("stabilityai/stablecode-completion-alpha-3b-4k", revision="7ccb1408b35c33832be9760138d621196e524866") model = AutoModelForCausalLM.from_pretrained("stabilityai/stablecode-completion-alpha-3b-4k", revision="7ccb1408b35c33832be9760138d621196e524866", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve stabilityai/stablecode-completion-alpha-3b-4k --revision 7ccb1408b35c33832be9760138d621196e524866

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
102d6eb6e3ce82deefff42b2277a1f2444b6f95faf42c95c1d3cf0d3754110e3
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: stabilityai <huggingface.co/stabilityai>Newsgroups: alt.freeweights.textSubject: stablecode-completion-alpha-3b-4kDate: 2026-11-15Commit: 7ccb140Signed: 2DC28CC7B26A283B ✓
Upstream
stabilityai/stablecode-completion-alpha-3b-4k
Pinned commit
7ccb1408b35c33832be9760138d621196e524866
Manifest
stablecode-completion-alpha-3b-4k.json · .minisig
Manifest sha256
d29b412c15d7a9c637a0e16ffd90d9c5a1904d6726bb925ea71e713661b3aa0f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:41 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/stabilityai/stablecode-completion-alpha-3b-4k.json $ curl -O https://freeweights.allternit.com/manifests/stabilityai/stablecode-completion-alpha-3b-4k.json.minisig $ minisign -Vm stablecode-completion-alpha-3b-4k.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download stabilityai/stablecode-completion-alpha-3b-4k
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. stablecode-completion-alpha-3b-4k.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B