Instructions to use sandspeare/llasm-decoder with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sandspeare/llasm-decoder with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sandspeare/llasm-decoder")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForCausalLM processor = AutoProcessor.from_pretrained("sandspeare/llasm-decoder") model = AutoModelForCausalLM.from_pretrained("sandspeare/llasm-decoder", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sandspeare/llasm-decoder with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sandspeare/llasm-decoder" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sandspeare/llasm-decoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sandspeare/llasm-decoder
- SGLang
How to use sandspeare/llasm-decoder 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 "sandspeare/llasm-decoder" \ --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": "sandspeare/llasm-decoder", "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 "sandspeare/llasm-decoder" \ --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": "sandspeare/llasm-decoder", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sandspeare/llasm-decoder with Docker Model Runner:
docker model run hf.co/sandspeare/llasm-decoder
Download non_lora_trainables.bin from sandspeare/llasm-decoder: direct link, hf CLI and curl.
- Browser
- Download file 26.6 GB
-
https://huggingface.co/sandspeare/llasm-decoder/resolve/main/non_lora_trainables.bin
- Command line
-
hf download hf://sandspeare/llasm-decoder/non_lora_trainables.bin
-
curl -L -o non_lora_trainables.bin https://huggingface.co/sandspeare/llasm-decoder/resolve/main/non_lora_trainables.bin
26.6 GB
- Xet hash:
- 25358a6924c39cb89838ff9d36408ad6f71a9b642b1f4863e65d7d7b3b3d6cc6
- Size of remote file:
- 26.6 GB
- SHA256:
- f3ad401ac04fef4cf463c34a9c4a5c89681bb62c334d278fd80f127b0d0419b5
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.