Text Generation
Transformers
Safetensors
English
Danish
mistral
text-generation-inference
unsloth
trl
Instructions to use Mabeck/Heidrun-Mistral-7B-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Mabeck/Heidrun-Mistral-7B-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Mabeck/Heidrun-Mistral-7B-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Mabeck/Heidrun-Mistral-7B-base") model = AutoModelForCausalLM.from_pretrained("Mabeck/Heidrun-Mistral-7B-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Mabeck/Heidrun-Mistral-7B-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Mabeck/Heidrun-Mistral-7B-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Mabeck/Heidrun-Mistral-7B-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Mabeck/Heidrun-Mistral-7B-base
- SGLang
How to use Mabeck/Heidrun-Mistral-7B-base 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 "Mabeck/Heidrun-Mistral-7B-base" \ --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": "Mabeck/Heidrun-Mistral-7B-base", "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 "Mabeck/Heidrun-Mistral-7B-base" \ --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": "Mabeck/Heidrun-Mistral-7B-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Desktop
- Docker Model Runner
How to use Mabeck/Heidrun-Mistral-7B-base with Docker Model Runner:
docker model run hf.co/Mabeck/Heidrun-Mistral-7B-base
Commit History
-
Delete pytorch_model.bin.index.json
Verified signature77a3ce7 -
Delete pytorch_model-00003-of-00003.bin
Verified signaturef705517 -
Delete pytorch_model-00002-of-00003.bin
Verified signaturee569dc0 -
Delete pytorch_model-00001-of-00003.bin
Verified signaturef7a459b -
Update README.md
Verified signature150c7ff -
Upload folder using huggingface_hub
Verified signaturea95117f -
Delete tokenizer.model
Verified signature44b4c6e
-
Update README.md
Verified signatureAdded license87318a0 -
Adding `safetensors` variant of this model (#1)
Verified signature- Adding `safetensors` variant of this model (a84f782286ac6502d8fe03b6a185cdc89da6c75c) Co-authored-by: Safetensors convertbot <SFconvertbot@users.noreply.huggingface.co>588ffac
-
Update README.md
Verified signature7e19a9e -
Update README.md
Verified signaturec8a9a6c
-
Upload MistralForCausalLM
Verified signature42f6fb5 -
Upload tokenizer
Verified signature2df8f70 -
Upload README.md with huggingface_hub
Verified signatured35bc41
-
Upload README.md with huggingface_hub
Verified signature68acb55 -
Upload README.md with huggingface_hub
Verified signature26026e1 -
Upload README.md with huggingface_hub
Verified signaturef73cbfc -
Upload README.md with huggingface_hub
Verified signatured99f1ee -
initial commit
Verified signaturecfab1b7