Text Generation
Transformers
Safetensors
English
babylm
babylm-2026
strict-small
linear-attention
state-tracking
delta-rule
custom_code
Instructions to use SecludedCorner/bind2_0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SecludedCorner/bind2_0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SecludedCorner/bind2_0", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("SecludedCorner/bind2_0", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SecludedCorner/bind2_0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SecludedCorner/bind2_0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SecludedCorner/bind2_0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/SecludedCorner/bind2_0
- SGLang
How to use SecludedCorner/bind2_0 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "SecludedCorner/bind2_0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SecludedCorner/bind2_0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "SecludedCorner/bind2_0" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SecludedCorner/bind2_0", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use SecludedCorner/bind2_0 with Docker Model Runner:
docker model run hf.co/SecludedCorner/bind2_0
comment-only neutralization of shipped modeling file (zero code change, AST-verified)
Browse files- modeling_babylm.py +2 -2
modeling_babylm.py
CHANGED
|
@@ -57,7 +57,7 @@ class LM(nn.Module): # monolith (train_stage1.LM)
|
|
| 57 |
return self.nf(h)
|
| 58 |
def forward(self, ids): return self.head(self.hidden(ids))
|
| 59 |
|
| 60 |
-
class Bind(nn.Module): #
|
| 61 |
def __init__(self, d, K=16, dr=64):
|
| 62 |
super().__init__(); self.role=nn.Linear(d,K,bias=False); self.R=nn.Parameter(torch.randn(K,dr)*0.02)
|
| 63 |
self.up=nn.Linear(dr,d,bias=False); self.trust=nn.Linear(d,1)
|
|
@@ -84,7 +84,7 @@ class LoopLM(nn.Module): # entry (train_loop.LoopLM)
|
|
| 84 |
return self.nf(h)
|
| 85 |
def forward(self, ids): return self.head(self.hidden(ids))
|
| 86 |
|
| 87 |
-
class Bind2(nn.Module): # v2
|
| 88 |
def __init__(self, d, K=16, dr=64):
|
| 89 |
super().__init__()
|
| 90 |
self.dr = dr
|
|
|
|
| 57 |
return self.nf(h)
|
| 58 |
def forward(self, ids): return self.head(self.hidden(ids))
|
| 59 |
|
| 60 |
+
class Bind(nn.Module): # label + trust (train_loop.Bind)
|
| 61 |
def __init__(self, d, K=16, dr=64):
|
| 62 |
super().__init__(); self.role=nn.Linear(d,K,bias=False); self.R=nn.Parameter(torch.randn(K,dr)*0.02)
|
| 63 |
self.up=nn.Linear(dr,d,bias=False); self.trust=nn.Linear(d,1)
|
|
|
|
| 84 |
return self.nf(h)
|
| 85 |
def forward(self, ids): return self.head(self.hidden(ids))
|
| 86 |
|
| 87 |
+
class Bind2(nn.Module): # v2 label+trust (train_loop.Bind, arch "loop2"): verdict-driven trust + experience prior + role-slice re-stamp
|
| 88 |
def __init__(self, d, K=16, dr=64):
|
| 89 |
super().__init__()
|
| 90 |
self.dr = dr
|