Instructions to use rewicks/monolingual_de_8k-shared_ep3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rewicks/monolingual_de_8k-shared_ep3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rewicks/monolingual_de_8k-shared_ep3")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rewicks/monolingual_de_8k-shared_ep3") model = AutoModelForCausalLM.from_pretrained("rewicks/monolingual_de_8k-shared_ep3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use rewicks/monolingual_de_8k-shared_ep3 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_ep3" # 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_ep3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/rewicks/monolingual_de_8k-shared_ep3
- SGLang
How to use rewicks/monolingual_de_8k-shared_ep3 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_ep3" \ --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_ep3", "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_ep3" \ --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_ep3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use rewicks/monolingual_de_8k-shared_ep3 with Docker Model Runner:
docker model run hf.co/rewicks/monolingual_de_8k-shared_ep3
Commit History
-
Upload model.safetensors with huggingface_hub
Verified signature26c46f7 -
Upload config.json with huggingface_hub
Verified signature6ad340f -
Upload MarianForCausalLM
Verified signatureb6f8fa5
-
Upload model.safetensors with huggingface_hub
Verified signatured0d8082 -
Upload config.json with huggingface_hub
Verified signature89d4209 -
Upload MarianForCausalLM
Verified signature8e94c2d
-
Upload model.safetensors with huggingface_hub
Verified signature996b4e7 -
Upload config.json with huggingface_hub
Verified signature5f25baa -
Upload MarianForCausalLM
Verified signature6f5c64d
-
Upload model.safetensors with huggingface_hub
Verified signaturec83ed1c -
Upload config.json with huggingface_hub
Verified signature716d032 -
Upload MarianForCausalLM
Verified signature6957d89
-
Upload model.npz with huggingface_hub
Verified signature05dd044 -
Upload model.safetensors with huggingface_hub
Verified signaturee161d55 -
Upload config.json with huggingface_hub
Verified signature63daf05 -
Upload MarianForCausalLM
Verified signature7952712
-
Upload model.safetensors with huggingface_hub
Verified signature4510ccd -
Upload config.json with huggingface_hub
Verified signature90a463c -
Upload MarianForCausalLM
Verified signature9a00a3d -
Upload model.safetensors with huggingface_hub
Verified signature5790597 -
Upload config.json with huggingface_hub
Verified signatureeb4b0d1 -
Upload MarianForCausalLM
Verified signaturedd6e5cf -
Upload model.safetensors with huggingface_hub
Verified signature0df2a71 -
Upload config.json with huggingface_hub
Verified signature8fd864b -
Upload MarianForCausalLM
Verified signature6c09da4 -
Upload model.safetensors with huggingface_hub
Verified signature95ed92a -
Upload config.json with huggingface_hub
Verified signature8be210d -
Upload MarianForCausalLM
Verified signatureac2655b -
Upload model.safetensors with huggingface_hub
Verified signature1160855 -
Upload config.json with huggingface_hub
Verified signature69ff201 -
Upload MarianForCausalLM
Verified signaturea617f80 -
Upload marian.vocab with huggingface_hub
Verified signature79c4927 -
Upload model.npz.yml with huggingface_hub
Verified signatured9519a6 -
Upload model.npz with huggingface_hub
Verified signature261cb45 -
Upload target.spm with huggingface_hub
Verified signature5fbc978 -
Upload source.spm with huggingface_hub
Verified signatured188fb1 -
Upload vocab.json with huggingface_hub
Verified signature2b9c3e4 -
Upload model.safetensors with huggingface_hub
Verified signature8af4353 -
Upload config.json with huggingface_hub
Verified signature35a11c0 -
Upload MarianForCausalLM
Verified signature206fe0c -
initial commit
Verified signature122e375