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)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Girinath11/recursive-language-model-198m", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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
This isn’t actually doing self-supervised curriculum learning.
What the model is doing is estimating how difficult a sequence is using its own perplexity, and then using that signal to decide how many recursion steps to run. Which isn't self-supervised curriculum learning.
So it’s basically adjusting the amount of compute based on difficulty. I’d call that adaptive compute, not self-supervised curriculum learning. In a true self-supervised curriculum, the training progression itself changes. For example the model gradually moves from easier samples to harder ones over time. That isn’t happening here. 😉
you're completely right, my bad on the terminology.
it's adaptive compute — using the model's own perplexity to allocate recursion depth per input, not curriculum learning in the training progression sense.Thanks for catching that 🙏