Text Generation
Transformers
Safetensors
PyTorch
English
hfp
causal-lm
linear-attention
long-context
recurrent-memory
o1-memory
custom_code
Instructions to use kayrahan35/HFP-O1-Memory-Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kayrahan35/HFP-O1-Memory-Model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kayrahan35/HFP-O1-Memory-Model", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("kayrahan35/HFP-O1-Memory-Model", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kayrahan35/HFP-O1-Memory-Model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kayrahan35/HFP-O1-Memory-Model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kayrahan35/HFP-O1-Memory-Model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kayrahan35/HFP-O1-Memory-Model
- SGLang
How to use kayrahan35/HFP-O1-Memory-Model 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 "kayrahan35/HFP-O1-Memory-Model" \ --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": "kayrahan35/HFP-O1-Memory-Model", "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 "kayrahan35/HFP-O1-Memory-Model" \ --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": "kayrahan35/HFP-O1-Memory-Model", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kayrahan35/HFP-O1-Memory-Model with Docker Model Runner:
docker model run hf.co/kayrahan35/HFP-O1-Memory-Model
Commit History
-
Upload 11 files
Verified signaturef9b2068 -
Delete modeling_hfp.py
Verified signaturef6fb715 -
Delete model.safetensors
Verified signature712c11a -
Delete hfp_utils.py
Verified signaturef8d3e9e -
Delete hfp_config.py
Verified signaturecccb22e -
Delete hfp_bulk_state.py
Verified signature7bbe044 -
Delete generation_config.json
Verified signature5a66caf -
Delete configuration_hfp.py
Verified signature03bce71 -
Delete config.json
Verified signature93bb8f2 -
Delete bulk_trigger_decoder.py
Verified signaturecfc9782 -
Delete README.md
Verified signaturef5499ab -
Delete .gitattributes
Verified signaturec16387b -
Delete hf_release
Verified signature5abfbd3 -
Upload 11 files
Verified signature823e853
-
Upload folder using huggingface_hub
Verified signature90801dd
-
Upload folder using huggingface_hub
Verified signaturef276409 -
Upload folder using huggingface_hub
Verified signaturedda583f
-
Upload benchmark_results_gpu.png with huggingface_hub
Verified signaturebc162db -
Initial commit: O(1) Memory HFP Architecture Core
Verified signature45145ab -
Upload LICENSE with huggingface_hub
Verified signatureaa1ea6d -
Upload README.md with huggingface_hub
Verified signaturebd41e3e -
Initial commit: O(1) Memory HFP Architecture Core
Verified signature0aa124c -
Delete hfp/core/hfp_bulk_state_original.py with huggingface_hub
Verified signaturec194edf -
Delete hfp/physics/__init__.py with huggingface_hub
Verified signaturef0b0af6 -
Delete hfp/physics/physics_optimizers.py with huggingface_hub
Verified signaturede07ad5 -
Delete benchmark.py with huggingface_hub
Verified signature6398243 -
Delete benchmark_quality.py with huggingface_hub
Verified signature8b4fbe2 -
Delete HF_MODEL_CARD.md with huggingface_hub
Verified signature401e3ae -
Delete benchmark_results_wikitext2.png with huggingface_hub
Verified signaturebc23eaf -
Delete benchmark_quality_results.png with huggingface_hub
Verified signature4cc95dd -
Upload README.md with huggingface_hub
Verified signature02bd67d -
Upload optimizer_stability_results.png with huggingface_hub
Verified signature8b18903 -
Initial commit: O(1) Memory HFP Architecture Core
Verified signatureff9e536
-
Upload README.md with huggingface_hub
Verified signature500c329 -
Upload passkey_1b_results.png with huggingface_hub
Verified signature4f6be52 -
Upload benchmark_results_wikitext2.png with huggingface_hub
Verified signature61a7dad -
Initial commit: O(1) Memory HFP Architecture Core
Verified signature96c021b
-
Upload tinyshakespeare.txt with huggingface_hub
Verified signatureaa51775 -
Upload benchmark_text_samples.txt with huggingface_hub
Verified signature7fb2170 -
Upload benchmark_quality_results.png with huggingface_hub
Verified signature9f880de -
Upload benchmark_results_gpu.png with huggingface_hub
Verified signature6f078af -
Upload HF_MODEL_CARD.md with huggingface_hub
Verified signaturec6a6d8b -
Upload README.md with huggingface_hub
Verified signature58612c2 -
Upload benchmark_quality.py with huggingface_hub
Verified signature2b39ec7 -
Upload benchmark.py with huggingface_hub
Verified signature92c9a55 -
Add Quality (Perplexity) benchmark graph
Verified signature169b3e8 -
Update 124M VRAM benchmark graph
Verified signaturef8f6fb0 -
Update Model Card with 124M VRAM and Quality (Perplexity) Benchmarks
Verified signature5dcac5b -
Upgrade to 124M (GPT-2 Small Equivalent) Architecture
Verified signature8940565 -
Update README.md with comprehensive O(1) Memory details
Verified signature881bd54