Text Generation
Transformers
Safetensors
PyTorch
English
recursive_language_model
transformer
recursive-language-model
mixture-of-recursion
adaptive-computation
perplexity-routing
self-supervised-perplexity-guided-adaptive-compute
custom_code
Instructions to use Girinath11/recursive-language-model-198m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Girinath11/recursive-language-model-198m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Girinath11/recursive-language-model-198m", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Girinath11/recursive-language-model-198m", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Girinath11/recursive-language-model-198m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Girinath11/recursive-language-model-198m" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Girinath11/recursive-language-model-198m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Girinath11/recursive-language-model-198m
- SGLang
How to use Girinath11/recursive-language-model-198m 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 "Girinath11/recursive-language-model-198m" \ --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": "Girinath11/recursive-language-model-198m", "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 "Girinath11/recursive-language-model-198m" \ --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": "Girinath11/recursive-language-model-198m", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Girinath11/recursive-language-model-198m with Docker Model Runner:
docker model run hf.co/Girinath11/recursive-language-model-198m
Commit History
-
Update mixture_of_recursion.py
Verified signature2caeef3
-
Update mixture_of_recursion.py
Verified signaturece85e84
-
Rename mixture_of_recursion (1).py to mixture_of_recursion.py
Verified signature0b5a3b1 -
mixture_of_recursion.py
Verified signature191a961
-
Update mixture_of_recursion.py
Verified signature0a13a07
-
Update mixture_of_recursion.py
Verified signature4d76d02 -
Update mixture_of_recursion.py
Verified signatureb8b9c16
-
Upload 8 files
Verified signatureee2236e -
mixture_of_recursion.py
Verified signature3121902
-
Update mixture_of_recursion.py
Verified signature3aac0be
-
Fix attention mask shape for batch_first=True
Verified signaturecea7963 -
Update mixture_of_recursion.py
Verified signature918dfa4 -
Fix attention mask and recursive logic bugs
Verified signaturebcbb68e
-
Update mixture_of_recursion.py
Verified signature5573a20 -
Update mixture_of_recursion.py
Verified signature7fa57e1 -
Update mixture_of_recursion.py
Verified signature585227e
-
Update mixture_of_recursion.py
Verified signature0526b65 -
Update mixture_of_recursion.py
Verified signatured072117 -
Update mixture_of_recursion.py
Verified signaturee1e00e3 -
Update mixture_of_recursion.py
Verified signature2460b88 -
Upload 3 files
Verified signaturef08f2d9