Instructions to use Cglowacki/elenky with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Cglowacki/elenky with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Cglowacki/elenky")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Cglowacki/elenky", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Cglowacki/elenky with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Cglowacki/elenky" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Cglowacki/elenky", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Cglowacki/elenky
- SGLang
How to use Cglowacki/elenky 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 "Cglowacki/elenky" \ --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": "Cglowacki/elenky", "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 "Cglowacki/elenky" \ --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": "Cglowacki/elenky", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Cglowacki/elenky with Docker Model Runner:
docker model run hf.co/Cglowacki/elenky
Commit History
-
fix: removes placeholder for potential code snippet
Verified signature032bd98 -
Update README.md with corrected model usage plus some code snippets
Verified signaturefc1f5f5
-
fix: update image link in README
Verified signaturec020677 -
Upload elenky.png
Verified signaturee1f66ac -
fix: remove asset empty file
4e91903 -
Create assets/
Verified signature54b0acc -
Adding Icons to headers in README
Verified signature36c6357 -
Update README.md
Verified signature45fec75 -
Upload LlamaForCausalLM
Verified signature4743511 -
initial commit
Verified signaturea40d3c4