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
Update README.md
Browse files
README.md
CHANGED
|
@@ -37,7 +37,7 @@ print(outputs[0]["generated_text"])
|
|
| 37 |
>>> "Om du är förkyld är det viktigt att vila och dricka mycket vatten.
|
| 38 |
Om du har feber, kan du ta paracetamol eller ibuprofen.
|
| 39 |
Om du har svårare symptom som svår feber, svårare smärtor i halsen,
|
| 40 |
-
svårare svullnad i halsen, svårare svårigheter att andas, kan du behöva söka hjälp hos en läkare."
|
| 41 |
```
|
| 42 |
|
| 43 |
This model is a merge of timpal0l/Mistral-7B-v0.1-flashback-v2-instruct and https://huggingface.co/BioMistral/BioMistral-7B.
|
|
@@ -61,4 +61,8 @@ parameters:
|
|
| 61 |
dtype: bfloat16
|
| 62 |
```
|
| 63 |
|
| 64 |
-
*Eir är läkekonstens gudinna i nordisk mytologi.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
>>> "Om du är förkyld är det viktigt att vila och dricka mycket vatten.
|
| 38 |
Om du har feber, kan du ta paracetamol eller ibuprofen.
|
| 39 |
Om du har svårare symptom som svår feber, svårare smärtor i halsen,
|
| 40 |
+
svårare svullnad i halsen, svårare svårigheter att andas, kan du behöva söka hjälp hos en läkare."
|
| 41 |
```
|
| 42 |
|
| 43 |
This model is a merge of timpal0l/Mistral-7B-v0.1-flashback-v2-instruct and https://huggingface.co/BioMistral/BioMistral-7B.
|
|
|
|
| 61 |
dtype: bfloat16
|
| 62 |
```
|
| 63 |
|
| 64 |
+
*Eir är läkekonstens gudinna i nordisk mytologi.
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
## CAUTION!
|
| 68 |
+
Both direct and downstream users need to be informed about the risks, biases, and constraints inherent in the model. While the model can produce natural language text, our exploration of its capabilities and limitations is just beginning. In fields such as medicine, comprehending these limitations is crucial. Hence, we strongly advise against deploying this model for natural language generation in production or for professional tasks in the realm of health and medicine.
|