Instructions to use NLPnorth/snakmodel-7b-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NLPnorth/snakmodel-7b-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="NLPnorth/snakmodel-7b-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("NLPnorth/snakmodel-7b-base") model = AutoModelForCausalLM.from_pretrained("NLPnorth/snakmodel-7b-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use NLPnorth/snakmodel-7b-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NLPnorth/snakmodel-7b-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NLPnorth/snakmodel-7b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/NLPnorth/snakmodel-7b-base
- SGLang
How to use NLPnorth/snakmodel-7b-base 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 "NLPnorth/snakmodel-7b-base" \ --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": "NLPnorth/snakmodel-7b-base", "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 "NLPnorth/snakmodel-7b-base" \ --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": "NLPnorth/snakmodel-7b-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use NLPnorth/snakmodel-7b-base with Docker Model Runner:
docker model run hf.co/NLPnorth/snakmodel-7b-base
Commit History
-
Update README.md
Verified signaturee848422
-
Upload tokenizer.json with huggingface_hub
Verified signatureddc106b -
Delete added_tokens.json
Verified signaturecea4d9e
-
Upload tokenizer_config.json with huggingface_hub
Verified signature4d895e5 -
Upload tokenizer_config.json with huggingface_hub
Verified signaturea919659 -
Upload special_tokens_map.json with huggingface_hub
Verified signaturec078cb5 -
Delete .locks
Verified signature75887fa -
Delete models--NLPnorth--snakmodel-7b-base
Verified signature6fa81bc -
Upload .locks/models--NLPnorth--snakmodel-7b-base/4c8988d40c2efb718744eefa7d4d915e17b40df7.lock with huggingface_hub
Verified signature9959046 -
Upload .locks/models--NLPnorth--snakmodel-7b-base/a6344aac8c09253b3b630fb776ae94478aa0275b.lock with huggingface_hub
Verified signature9d130ce -
Upload models--NLPnorth--snakmodel-7b-base/refs/main with huggingface_hub
Verified signature0809125 -
Upload models--NLPnorth--snakmodel-7b-base/snapshots/a8035fc09140828488a858d9b56c8dc3b14288a6/tokenizer_config.json with huggingface_hub
Verified signature15fb22c -
Upload models--NLPnorth--snakmodel-7b-base/snapshots/a8035fc09140828488a858d9b56c8dc3b14288a6/tokenizer.model with huggingface_hub
Verified signature2b1effb -
Upload models--NLPnorth--snakmodel-7b-base/snapshots/a8035fc09140828488a858d9b56c8dc3b14288a6/tokenizer.json with huggingface_hub
Verified signature0cb737d -
Upload models--NLPnorth--snakmodel-7b-base/snapshots/a8035fc09140828488a858d9b56c8dc3b14288a6/special_tokens_map.json with huggingface_hub
Verified signature9369917 -
Upload models--NLPnorth--snakmodel-7b-base/snapshots/a8035fc09140828488a858d9b56c8dc3b14288a6/snakmodel-base.png with huggingface_hub
Verified signature118e6f1 -
Upload models--NLPnorth--snakmodel-7b-base/snapshots/a8035fc09140828488a858d9b56c8dc3b14288a6/model.safetensors.index.json with huggingface_hub
Verified signature0df0db0 -
Upload models--NLPnorth--snakmodel-7b-base/snapshots/a8035fc09140828488a858d9b56c8dc3b14288a6/generation_config.json with huggingface_hub
Verified signaturec639d21 -
Upload models--NLPnorth--snakmodel-7b-base/snapshots/a8035fc09140828488a858d9b56c8dc3b14288a6/config.json with huggingface_hub
Verified signature3330e37 -
Upload models--NLPnorth--snakmodel-7b-base/snapshots/a8035fc09140828488a858d9b56c8dc3b14288a6/README.md with huggingface_hub
Verified signature480c27a -
Upload models--NLPnorth--snakmodel-7b-base/snapshots/a8035fc09140828488a858d9b56c8dc3b14288a6/.gitattributes with huggingface_hub
Verified signaturebbc6f25 -
Upload models--NLPnorth--snakmodel-7b-base/blobs/04a6b76c7b984884db39812a5ab72a8adc931a89 with huggingface_hub
Verified signatured7c21a2 -
Upload models--NLPnorth--snakmodel-7b-base/blobs/9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347 with huggingface_hub
Verified signature4e35e58 -
Upload models--NLPnorth--snakmodel-7b-base/blobs/86fe1a5aa6953e93b0b2020609b0a52c11621259 with huggingface_hub
Verified signatured4f5953 -
Upload models--NLPnorth--snakmodel-7b-base/blobs/1e59223bfb9c3e9c479515876e9e5d164924ecaa with huggingface_hub
Verified signature0ef1a23 -
Upload models--NLPnorth--snakmodel-7b-base/blobs/814e1426a83b0eed37b690ab766e7535403e53bf with huggingface_hub
Verified signature9a91132 -
Upload models--NLPnorth--snakmodel-7b-base/blobs/13674e51e613232b3becd7046ec62b76392c976e with huggingface_hub
Verified signature6c264d2 -
Upload models--NLPnorth--snakmodel-7b-base/blobs/589fbcab306e58ba6d65e7dde03c89eb03ab6595 with huggingface_hub
Verified signaturebd0affb -
Upload models--NLPnorth--snakmodel-7b-base/blobs/1f293b23113f1f3a34183cf34fd0be781156fb20 with huggingface_hub
Verified signatured15f2e3 -
Upload models--NLPnorth--snakmodel-7b-base/blobs/48482c1623390e7ba8be812c489d663cc138d0b1 with huggingface_hub
Verified signature410793f -
Upload models--NLPnorth--snakmodel-7b-base/blobs/4c8988d40c2efb718744eefa7d4d915e17b40df7 with huggingface_hub
Verified signature838bdc1 -
Upload models--NLPnorth--snakmodel-7b-base/blobs/a6344aac8c09253b3b630fb776ae94478aa0275b with huggingface_hub
Verified signature321964c
-
uploaded final SnakModel-7B (base) model
Verified signaturea8035fc -
uploaded final SnakModel-7B (base) tokenizer
Verified signature581063d
-
added library to metadata
Verified signature8fcecee -
uploaded final SnakModel-7B (base) model
Verified signature7e4ed68 -
uploaded final SnakModel-7B (base) tokenizer
Verified signaturebbc3a52 -
uploaded final SnakModel-7B (base) model
Verified signatureaff6e00 -
uploaded final SnakModel-7B (base) tokenizer
Verified signature3e20795 -
uploaded final SnakModel-7B (base) model
Verified signature1612e57 -
uploaded final SnakModel-7B (base) tokenizer
Verified signature7f9ccd8 -
uploaded final SnakModel-7B (base) model
Verified signature0ebf7e1 -
uploaded final SnakModel-7B (base) tokenizer
Verified signature5e0188b -
uploaded final SnakModel-7B (base) model
Verified signature1198e84 -
uploaded final SnakModel-7B (base) tokenizer
Verified signature8b7d5a1 -
uploaded final SnakModel-7B (base) model
Verified signature1354e4f -
uploaded final SnakModel-7B (base) tokenizer
Verified signature267086f
-
added initial model card
Max Müller-Ebersteinf87f301 -
initial commit
Verified signature0207816