Text Generation
Transformers
Safetensors
English
model_n_embed_1024_n_layer_32
feature-extraction
causal-lm
transformer
decoder-only
research
custom_code
Instructions to use E6E831728/learned-input-table-model-classic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use E6E831728/learned-input-table-model-classic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="E6E831728/learned-input-table-model-classic", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("E6E831728/learned-input-table-model-classic", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use E6E831728/learned-input-table-model-classic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "E6E831728/learned-input-table-model-classic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "E6E831728/learned-input-table-model-classic", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/E6E831728/learned-input-table-model-classic
- SGLang
How to use E6E831728/learned-input-table-model-classic 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 "E6E831728/learned-input-table-model-classic" \ --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": "E6E831728/learned-input-table-model-classic", "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 "E6E831728/learned-input-table-model-classic" \ --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": "E6E831728/learned-input-table-model-classic", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use E6E831728/learned-input-table-model-classic with Docker Model Runner:
docker model run hf.co/E6E831728/learned-input-table-model-classic
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
library_name: transformers
|
| 4 |
+
tags:
|
| 5 |
+
- language-modeling
|
| 6 |
+
- transformer
|
| 7 |
+
- decoder-only
|
| 8 |
+
- research
|
| 9 |
+
- neurips-2026-anonymous
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Learned Input Table Model Classic
|
| 13 |
+
|
| 14 |
+
This is an anonymized research checkpoint for the paper:
|
| 15 |
+
|
| 16 |
+
**Language Models Without a Trainable Input Embedding Table: Learning from Fixed Minimal Binary Token Codes**
|
| 17 |
+
|
| 18 |
+
## Model variant
|
| 19 |
+
|
| 20 |
+
This repository contains the **learned input table baseline**.
|
| 21 |
+
|
| 22 |
+
The model is a 32-layer decoder-only Transformer with:
|
| 23 |
+
|
| 24 |
+
- vocabulary size: 65,536
|
| 25 |
+
- model width: 1024
|
| 26 |
+
- number of layers: 32
|
| 27 |
+
- number of attention heads: 32
|
| 28 |
+
- context length: 1024
|
| 29 |
+
- rotary positional embeddings
|
| 30 |
+
- GELU activations
|
| 31 |
+
- untied trainable output projection
|
| 32 |
+
|
| 33 |
+
This baseline uses a standard trainable input embedding table of size:
|
| 34 |
+
|
| 35 |
+
```text
|
| 36 |
+
65,536 x 1024 = 67,108,864 trainable input parameters
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## Intended use
|
| 40 |
+
|
| 41 |
+
This checkpoint is provided for anonymous review and reproducibility of the paper's controlled comparison. It is intended for research use only.
|
| 42 |
+
|
| 43 |
+
## Loading example
|
| 44 |
+
|
| 45 |
+
```python
|
| 46 |
+
import torch
|
| 47 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 48 |
+
|
| 49 |
+
repo_id = "E6E831728/learned-input-table-model-classic"
|
| 50 |
+
|
| 51 |
+
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
|
| 52 |
+
model = AutoModelForCausalLM.from_pretrained(repo_id, trust_remote_code=True)
|
| 53 |
+
model.eval()
|
| 54 |
+
|
| 55 |
+
prompt = "Question: What is the capital of United Kingdom?\nAnswer:"
|
| 56 |
+
input_ids = torch.tensor([tokenizer.encode(prompt)], dtype=torch.long)
|
| 57 |
+
|
| 58 |
+
with torch.no_grad():
|
| 59 |
+
output_ids = model.generate(input_ids, max_new_tokens=16, do_sample=False)
|
| 60 |
+
|
| 61 |
+
print(tokenizer.decode(output_ids[0].tolist()))
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
## Limitations
|
| 65 |
+
|
| 66 |
+
This is a small research language model trained for architectural comparison. It is not instruction-tuned for safe deployment and should not be used as a production system.
|
| 67 |
+
|
| 68 |
+
## Training data
|
| 69 |
+
|
| 70 |
+
The model was trained on the same FineWeb-Edu + Cosmopedia mixture used for the matched comparisons in the paper. Dataset terms and licenses are those of the original datasets.
|
| 71 |
+
|
| 72 |
+
## Citation
|
| 73 |
+
|
| 74 |
+
Anonymous submission under review.
|