Text Generation
Transformers
Safetensors
gpt_neox
memory-decoder
parametric-memory
long-term-memory
memorydecoder-at-scale
pythia
text-generation-inference
Instructions to use Rubin-Wei/MemoryDecoder-Pythia-1.4B-general with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rubin-Wei/MemoryDecoder-Pythia-1.4B-general with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Rubin-Wei/MemoryDecoder-Pythia-1.4B-general")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Rubin-Wei/MemoryDecoder-Pythia-1.4B-general") model = AutoModelForCausalLM.from_pretrained("Rubin-Wei/MemoryDecoder-Pythia-1.4B-general", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Rubin-Wei/MemoryDecoder-Pythia-1.4B-general with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Rubin-Wei/MemoryDecoder-Pythia-1.4B-general" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Rubin-Wei/MemoryDecoder-Pythia-1.4B-general", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Rubin-Wei/MemoryDecoder-Pythia-1.4B-general
- SGLang
How to use Rubin-Wei/MemoryDecoder-Pythia-1.4B-general 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 "Rubin-Wei/MemoryDecoder-Pythia-1.4B-general" \ --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": "Rubin-Wei/MemoryDecoder-Pythia-1.4B-general", "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 "Rubin-Wei/MemoryDecoder-Pythia-1.4B-general" \ --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": "Rubin-Wei/MemoryDecoder-Pythia-1.4B-general", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Rubin-Wei/MemoryDecoder-Pythia-1.4B-general with Docker Model Runner:
docker model run hf.co/Rubin-Wei/MemoryDecoder-Pythia-1.4B-general
Add model card with project links and citation
Browse files
README.md
CHANGED
|
@@ -11,6 +11,13 @@ tags:
|
|
| 11 |
---
|
| 12 |
# MemoryDecoder-Pythia-1.4B-general
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
This repository contains the **1.4B general Memory Decoder** released with
|
| 15 |
[Memory Decoder at Scale](https://arxiv.org/abs/2607.27919). It is a pretrained parametric long-term
|
| 16 |
memory designed to be paired with a frozen Pythia-family language model. The
|
|
@@ -32,11 +39,10 @@ than treating it as a standalone assistant.
|
|
| 32 |
| Intended backbone | Frozen, tokenizer-compatible Pythia model |
|
| 33 |
| Release contents | Inference weights, configuration, and tokenizer files |
|
| 34 |
|
| 35 |
-
Optimizer states and training-resume artifacts are not part of this release.
|
| 36 |
-
|
| 37 |
## Usage
|
| 38 |
|
| 39 |
-
Install the environments from
|
|
|
|
| 40 |
`hf-memdec` adapter. For example:
|
| 41 |
|
| 42 |
```bash
|
|
@@ -63,13 +69,6 @@ the selected backbone and interpolation settings. It may reproduce biases or
|
|
| 63 |
errors present in its training data and should not be treated as an authoritative
|
| 64 |
knowledge source.
|
| 65 |
|
| 66 |
-
## Links
|
| 67 |
-
|
| 68 |
-
- [Project page](https://rubin-wei.github.io/memory-decoder-at-scale/)
|
| 69 |
-
- [GitHub repository](https://github.com/LUMIA-Group/MemoryDecoder-at-Scale)
|
| 70 |
-
- [Paper](https://arxiv.org/abs/2607.27919)
|
| 71 |
-
- [Model and data collection](https://huggingface.co/collections/Rubin-Wei/memorydecoder-at-scale)
|
| 72 |
-
|
| 73 |
## Citation
|
| 74 |
|
| 75 |
If you use this checkpoint, please cite:
|
|
|
|
| 11 |
---
|
| 12 |
# MemoryDecoder-Pythia-1.4B-general
|
| 13 |
|
| 14 |
+
## Resources
|
| 15 |
+
|
| 16 |
+
- [Project Page: Memory Decoder at Scale](https://rubin-wei.github.io/memory-decoder-at-scale/)
|
| 17 |
+
- [GitHub Repository: LUMIA-Group/MemoryDecoder-at-Scale](https://github.com/LUMIA-Group/MemoryDecoder-at-Scale)
|
| 18 |
+
- [Paper: Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memory](https://arxiv.org/abs/2607.27919)
|
| 19 |
+
- [Hugging Face Collection: MemoryDecoder-at-Scale](https://huggingface.co/collections/Rubin-Wei/memorydecoder-at-scale)
|
| 20 |
+
|
| 21 |
This repository contains the **1.4B general Memory Decoder** released with
|
| 22 |
[Memory Decoder at Scale](https://arxiv.org/abs/2607.27919). It is a pretrained parametric long-term
|
| 23 |
memory designed to be paired with a frozen Pythia-family language model. The
|
|
|
|
| 39 |
| Intended backbone | Frozen, tokenizer-compatible Pythia model |
|
| 40 |
| Release contents | Inference weights, configuration, and tokenizer files |
|
| 41 |
|
|
|
|
|
|
|
| 42 |
## Usage
|
| 43 |
|
| 44 |
+
Install the environments from
|
| 45 |
+
[LUMIA-Group/MemoryDecoder-at-Scale](https://github.com/LUMIA-Group/MemoryDecoder-at-Scale), then use the
|
| 46 |
`hf-memdec` adapter. For example:
|
| 47 |
|
| 48 |
```bash
|
|
|
|
| 69 |
errors present in its training data and should not be treated as an authoritative
|
| 70 |
knowledge source.
|
| 71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
## Citation
|
| 73 |
|
| 74 |
If you use this checkpoint, please cite:
|