Text Generation
Transformers
Safetensors
German
English
mistral
mergekit
Merge
text-generation-inference
Instructions to use MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B") model = AutoModelForCausalLM.from_pretrained("MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B
- SGLang
How to use MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B 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 "MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B" \ --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": "MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B", "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 "MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B" \ --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": "MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B with Docker Model Runner:
docker model run hf.co/MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B
Download VerwaltungsAnthologie_Disco_simbad_7B.yaml from MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B/resolve/main/VerwaltungsAnthologie_Disco_simbad_7B.yaml
- Command line
-
hf download hf://MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B/VerwaltungsAnthologie_Disco_simbad_7B.yaml
-
curl -L -o VerwaltungsAnthologie_Disco_simbad_7B.yaml https://huggingface.co/MarcGrumpyOlejak/VerwaltungsAnthologie_Disco_simbad_7B/resolve/main/VerwaltungsAnthologie_Disco_simbad_7B.yaml
518 Bytes
| # | |
| # | |
| slices: | |
| - sources: | |
| - model: DiscoResearch/DiscoLM_German_7b_v1 | |
| layer_range: [0, 32] | |
| - model: MarcGrumpyOlejak/VerwaltungsAnthologie_clear_simbad_7B | |
| layer_range: [0, 32] | |
| merge_method: slerp | |
| base_model: MarcGrumpyOlejak/VerwaltungsAnthologie_clear_simbad_7B | |
| embed_slerp: true | |
| parameters: | |
| t: | |
| - filter: self_attn | |
| value: [0, 0.5, 0.3, 0.7, 1] | |
| - filter: mlp | |
| value: [1, 0.5, 0.7, 0.3, 0] | |
| - value: 0.5 | |
| dtype: bfloat16 | |
| name: VerwaltungsAnthologie_Disco_simbad_7B | |