Text Generation
Transformers
Safetensors
hybrid_tiny_lm
custom-code
hybrid-attention
state-space-model
wikitext
ml-intern
Instructions to use rahulshetty/hybrid-tiny-wikitext-poc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rahulshetty/hybrid-tiny-wikitext-poc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rahulshetty/hybrid-tiny-wikitext-poc")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("rahulshetty/hybrid-tiny-wikitext-poc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rahulshetty/hybrid-tiny-wikitext-poc with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rahulshetty/hybrid-tiny-wikitext-poc" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rahulshetty/hybrid-tiny-wikitext-poc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rahulshetty/hybrid-tiny-wikitext-poc
- SGLang
How to use rahulshetty/hybrid-tiny-wikitext-poc 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 "rahulshetty/hybrid-tiny-wikitext-poc" \ --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": "rahulshetty/hybrid-tiny-wikitext-poc", "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 "rahulshetty/hybrid-tiny-wikitext-poc" \ --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": "rahulshetty/hybrid-tiny-wikitext-poc", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rahulshetty/hybrid-tiny-wikitext-poc with Docker Model Runner:
docker model run hf.co/rahulshetty/hybrid-tiny-wikitext-poc
Download sample_generation.txt from rahulshetty/hybrid-tiny-wikitext-poc: direct link, hf CLI and curl.
- Browser
- Download file 239 Bytes
-
https://huggingface.co/rahulshetty/hybrid-tiny-wikitext-poc/resolve/main/sample_generation.txt
- Command line
-
hf download hf://rahulshetty/hybrid-tiny-wikitext-poc/sample_generation.txt
-
curl -L -o sample_generation.txt https://huggingface.co/rahulshetty/hybrid-tiny-wikitext-poc/resolve/main/sample_generation.txt
239 Bytes
| The history of science SN Hartfordism ' nature three south , the Joh forlight The ! 000 =med Ll ; Presidentsevere = , is which the caught JP of of a K 2 was impression now started the ensemble 'ens in was dev ofimil commercial part � and |