Instructions to use rewicks/monolingual_de_8k-shared_ep4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rewicks/monolingual_de_8k-shared_ep4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rewicks/monolingual_de_8k-shared_ep4")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rewicks/monolingual_de_8k-shared_ep4") model = AutoModelForCausalLM.from_pretrained("rewicks/monolingual_de_8k-shared_ep4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rewicks/monolingual_de_8k-shared_ep4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rewicks/monolingual_de_8k-shared_ep4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rewicks/monolingual_de_8k-shared_ep4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rewicks/monolingual_de_8k-shared_ep4
- SGLang
How to use rewicks/monolingual_de_8k-shared_ep4 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 "rewicks/monolingual_de_8k-shared_ep4" \ --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": "rewicks/monolingual_de_8k-shared_ep4", "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 "rewicks/monolingual_de_8k-shared_ep4" \ --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": "rewicks/monolingual_de_8k-shared_ep4", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rewicks/monolingual_de_8k-shared_ep4 with Docker Model Runner:
docker model run hf.co/rewicks/monolingual_de_8k-shared_ep4
Commit History
-
Upload model.safetensors with huggingface_hub
Verified signaturea35903a -
Upload config.json with huggingface_hub
Verified signature5f9ea91 -
Upload MarianForCausalLM
Verified signature0a03e0c
-
Upload model.safetensors with huggingface_hub
Verified signaturebdc03c8 -
Upload config.json with huggingface_hub
Verified signature19b5e11 -
Upload MarianForCausalLM
Verified signature2ea2dcf
-
Upload model.safetensors with huggingface_hub
Verified signaturea7d2885 -
Upload config.json with huggingface_hub
Verified signature161a919 -
Upload MarianForCausalLM
Verified signature28234ce
-
Upload model.safetensors with huggingface_hub
Verified signature7f0da07 -
Upload config.json with huggingface_hub
Verified signature31584bb -
Upload MarianForCausalLM
Verified signature399538c
-
Upload marian.vocab with huggingface_hub
Verified signature42a4a0e -
Upload model.npz.yml with huggingface_hub
Verified signature5ab83ab -
Upload model.npz with huggingface_hub
Verified signature8285247 -
Upload target.spm with huggingface_hub
Verified signatureba2195d -
Upload source.spm with huggingface_hub
Verified signatureb969fd3 -
Upload vocab.json with huggingface_hub
Verified signature4ed499a -
Upload model.safetensors with huggingface_hub
Verified signature4205374 -
Upload config.json with huggingface_hub
Verified signature2aba743 -
Upload MarianForCausalLM
Verified signatureb26e7bf -
initial commit
Verified signatureb968008