Instructions to use birgermoell/eir with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use birgermoell/eir with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="birgermoell/eir")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("birgermoell/eir") model = AutoModelForCausalLM.from_pretrained("birgermoell/eir", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use birgermoell/eir with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "birgermoell/eir" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "birgermoell/eir", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/birgermoell/eir
- SGLang
How to use birgermoell/eir 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 "birgermoell/eir" \ --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": "birgermoell/eir", "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 "birgermoell/eir" \ --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": "birgermoell/eir", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use birgermoell/eir with Docker Model Runner:
docker model run hf.co/birgermoell/eir
Commit History
-
Update README.md
Verified signatureda9f087 -
Update README.md
Verified signaturebbd10e2 -
Update README.md
Verified signature2c1a704 -
Update README.md
Verified signaturedcf10e9 -
Update README.md
Verified signature00864c1 -
Update README.md
Verified signature4e6bc41 -
Update README.md
Verified signature52bdebe -
Update README.md
Verified signature14b793b -
Update README.md
Verified signaturec71fc74 -
Update README.md
Verified signaturef4b77c9 -
Update README.md
Verified signaturee4d3c71 -
Update README.md
Verified signaturedec36b9 -
Update README.md
Verified signaturea11d9ce -
Update README.md
Verified signature7eadbb6
-
Update README.md
Verified signature9ba59e7 -
Update README.md
Verified signatured3e86d8 -
Update README.md
Verified signature19b0aab -
Update README.md
Verified signature034f53b -
Update README.md
Verified signature456d237 -
Update README.md
Verified signature1e7798c -
Update README.md
Verified signature5a890da -
Upload eir.png
Verified signature046cfc5 -
Upload folder using huggingface_hub
Verified signaturea467bf1 -
initial commit
Verified signaturef2ad5ab