Instructions to use winglian/derp-alpha-4k-lma with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use winglian/derp-alpha-4k-lma with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="winglian/derp-alpha-4k-lma")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("winglian/derp-alpha-4k-lma") model = AutoModelForCausalLM.from_pretrained("winglian/derp-alpha-4k-lma", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use winglian/derp-alpha-4k-lma with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "winglian/derp-alpha-4k-lma" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "winglian/derp-alpha-4k-lma", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/winglian/derp-alpha-4k-lma
- SGLang
How to use winglian/derp-alpha-4k-lma 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 "winglian/derp-alpha-4k-lma" \ --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": "winglian/derp-alpha-4k-lma", "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 "winglian/derp-alpha-4k-lma" \ --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": "winglian/derp-alpha-4k-lma", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use winglian/derp-alpha-4k-lma with Docker Model Runner:
docker model run hf.co/winglian/derp-alpha-4k-lma
- Xet hash:
- 0e5366a4133cb2fd934c104f262c3c1c52306845246aa9b60af2642b8a647f36
- Size of remote file:
- 13.5 GB
- SHA256:
- 3074b0ccc7b042f318fb640f258051633e420ce147b78a265eec254805a7d8d4
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.