Instructions to use occiglot/occiglot-7b-de-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use occiglot/occiglot-7b-de-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="occiglot/occiglot-7b-de-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("occiglot/occiglot-7b-de-en") model = AutoModelForCausalLM.from_pretrained("occiglot/occiglot-7b-de-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use occiglot/occiglot-7b-de-en with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "occiglot/occiglot-7b-de-en" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "occiglot/occiglot-7b-de-en", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/occiglot/occiglot-7b-de-en
- SGLang
How to use occiglot/occiglot-7b-de-en 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 "occiglot/occiglot-7b-de-en" \ --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": "occiglot/occiglot-7b-de-en", "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 "occiglot/occiglot-7b-de-en" \ --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": "occiglot/occiglot-7b-de-en", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use occiglot/occiglot-7b-de-en with Docker Model Runner:
docker model run hf.co/occiglot/occiglot-7b-de-en
Commit History
-
clean table (#5)
Verified signature- clean table (651cca5dd389ce88f3006a51c4afb1c7af58d5eb) Co-authored-by: Fabio Barth <barthfab@users.noreply.huggingface.co>93c0cd0 -
fix tables (#4)
Verified signature- fix tables (95a5c2437a879558c327e3fa61652d0c3e944672) Co-authored-by: Fabio Barth <barthfab@users.noreply.huggingface.co>9dc3414 -
Update README.md (#3)
Verified signature- Update README.md (9890745310317cae5c0ca0f285936cef75d68bd8) Co-authored-by: Fabio Barth <barthfab@users.noreply.huggingface.co>5c39f32 -
Update README.md
Verified signature072a658 -
Update README.md (#1)
Verified signature- Update README.md (00a29a821b5d11e73e63065e11c83711ba1f6ad2) Co-authored-by: Fabio Barth <barthfab@users.noreply.huggingface.co>4868799 -
Update README.md
Verified signature32cd0f4 -
Update README.md
Verified signaturef5cefd1 -
Update README.md
Verified signaturedc331a6 -
Update README.md
Verified signature3c71184 -
Update README.md
Verified signature5d1d3d8 -
Update README.md
Verified signature000a74a -
Update README.md
Verified signature620668e
-
Upload MistralForCausalLM
Verified signaturec67147f