Text Generation
Transformers
PyTorch
English
shram
research
sparse-attention
mixture-of-experts
custom_code
Instructions to use smithblack-0/SHRAM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use smithblack-0/SHRAM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="smithblack-0/SHRAM", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("smithblack-0/SHRAM", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use smithblack-0/SHRAM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "smithblack-0/SHRAM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "smithblack-0/SHRAM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/smithblack-0/SHRAM
- SGLang
How to use smithblack-0/SHRAM 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 "smithblack-0/SHRAM" \ --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": "smithblack-0/SHRAM", "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 "smithblack-0/SHRAM" \ --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": "smithblack-0/SHRAM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use smithblack-0/SHRAM with Docker Model Runner:
docker model run hf.co/smithblack-0/SHRAM
Commit History
-
Update architecture and tokenizer
Verified signature14a81d4
-
Update architecture and tokenizer
Verified signature11f58e6 -
Update architecture and tokenizer
Verified signature4e8a4d0
-
Update architecture and tokenizer
Verified signature78e3ef4
-
Update architecture and tokenizer
Verified signatureb5d3eb0
-
Update architecture and tokenizer
Verified signature4e7ebd6
-
Update architecture and tokenizer
Verified signature4915115
-
Update architecture and tokenizer
Verified signature8efb52e
-
Update architecture and tokenizer
Verified signatureb9791fe -
Update architecture and tokenizer
Verified signature2576d8f
-
Update architecture and tokenizer
Verified signature198f7a7 -
Update architecture and tokenizer
Verified signature15cd70a
-
Update architecture and tokenizer
Verified signature2b40c7d -
Update architecture and tokenizer
Verified signature2c135f8 -
Update architecture and tokenizer
Verified signaturece03063
-
Update architecture and tokenizer
Verified signaturecf123f4 -
Update architecture and tokenizer
Verified signaturecd6e11a -
Update architecture and tokenizer
Verified signature64f3067
-
Update architecture and tokenizer
Verified signature20b95bb
-
Update architecture and tokenizer
Verified signaturede15095
-
Update architecture and tokenizer
Verified signaturea86502d
-
Update architecture and tokenizer
Verified signature0c295ed
-
Update architecture and tokenizer
Verified signature78610c2
-
Update architecture and tokenizer
Verified signature7bf638f
-
Update architecture and tokenizer
Verified signatureaf7974e -
Update architecture and tokenizer
Verified signature72e7455 -
Clear repository contents
Verified signature03ca6a0 -
Update architecture and tokenizer
Verified signature02b5fbb -
Update architecture and tokenizer
Verified signatured7e907d
-
Update architecture and tokenizer
Verified signature8d94cd0 -
Update architecture and tokenizer
Verified signaturea5f76da
-
initial commit
Verified signature4f94f1f