Instructions to use rewicks/monolingual_de_8k-shared_ep1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rewicks/monolingual_de_8k-shared_ep1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rewicks/monolingual_de_8k-shared_ep1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rewicks/monolingual_de_8k-shared_ep1") model = AutoModelForCausalLM.from_pretrained("rewicks/monolingual_de_8k-shared_ep1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rewicks/monolingual_de_8k-shared_ep1 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_ep1" # 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_ep1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rewicks/monolingual_de_8k-shared_ep1
- SGLang
How to use rewicks/monolingual_de_8k-shared_ep1 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_ep1" \ --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_ep1", "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_ep1" \ --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_ep1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rewicks/monolingual_de_8k-shared_ep1 with Docker Model Runner:
docker model run hf.co/rewicks/monolingual_de_8k-shared_ep1
Commit History
-
Upload model.safetensors with huggingface_hub
Verified signature3a114bb -
Upload config.json with huggingface_hub
Verified signature85ec1b4 -
Upload MarianForCausalLM
Verified signatured94cd98
-
Upload model.safetensors with huggingface_hub
Verified signatured12b2b8 -
Upload config.json with huggingface_hub
Verified signaturef6702c2 -
Upload MarianForCausalLM
Verified signaturee80d498
-
Upload model.safetensors with huggingface_hub
Verified signature689820b -
Upload config.json with huggingface_hub
Verified signaturec5aad4f -
Upload MarianForCausalLM
Verified signaturea438d1f -
Upload model.safetensors with huggingface_hub
Verified signaturebb90450 -
Upload config.json with huggingface_hub
Verified signature095956c -
Upload MarianForCausalLM
Verified signature12d3e24 -
Upload model.safetensors with huggingface_hub
Verified signaturec24fa38 -
Upload config.json with huggingface_hub
Verified signature991d3e5 -
Upload MarianForCausalLM
Verified signature781cdcf
-
Upload model.safetensors with huggingface_hub
Verified signature262efe6 -
Upload config.json with huggingface_hub
Verified signature5e0ef57 -
Upload MarianForCausalLM
Verified signature62e20dd
-
Upload model.safetensors with huggingface_hub
Verified signature29f5fb4 -
Upload config.json with huggingface_hub
Verified signature83172e2 -
Upload MarianForCausalLM
Verified signature2b04b64
-
Upload model.safetensors with huggingface_hub
Verified signature1ba67b6 -
Upload config.json with huggingface_hub
Verified signature6827ce3 -
Upload MarianForCausalLM
Verified signature4440ad6 -
Upload model.safetensors with huggingface_hub
Verified signaturead3be8c -
Upload config.json with huggingface_hub
Verified signature5c3561c -
Upload MarianForCausalLM
Verified signature28936cb -
Upload model.safetensors with huggingface_hub
Verified signature585a499 -
Upload config.json with huggingface_hub
Verified signature900ccec -
Upload MarianForCausalLM
Verified signature7006943 -
Upload model.npz with huggingface_hub
Verified signature2b950f4 -
Upload model.safetensors with huggingface_hub
Verified signatured969039 -
Upload config.json with huggingface_hub
Verified signature033ae22 -
Upload MarianForCausalLM
Verified signature66e81c4
-
Upload model.npz.yml with huggingface_hub
Verified signature8c183fb -
Upload model.npz with huggingface_hub
Verified signature4eb8452 -
Upload model.safetensors with huggingface_hub
Verified signatured931a34 -
Upload config.json with huggingface_hub
Verified signature86f4a5e -
Upload MarianForCausalLM
Verified signaturee8f294c
-
Upload model.safetensors with huggingface_hub
Verified signaturef131f00 -
Upload config.json with huggingface_hub
Verified signature8d5d7ba -
Upload MarianForCausalLM
Verified signature9ee19f9 -
Upload model.safetensors with huggingface_hub
Verified signaturec6d5efb -
Upload config.json with huggingface_hub
Verified signature4f3df95 -
Upload MarianForCausalLM
Verified signaturea3a4e45 -
Upload marian.vocab with huggingface_hub
Verified signatured25123b -
Upload model.npz.yml with huggingface_hub
Verified signature38f7785 -
Upload model.npz with huggingface_hub
Verified signature4c4de2d -
Upload target.spm with huggingface_hub
Verified signature2fd17cd -
Upload source.spm with huggingface_hub
Verified signatureec6ef12