Instructions to use north/llama2-7b-PlayFiltered-10000-exporttest with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use north/llama2-7b-PlayFiltered-10000-exporttest with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="north/llama2-7b-PlayFiltered-10000-exporttest")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("north/llama2-7b-PlayFiltered-10000-exporttest") model = AutoModelForCausalLM.from_pretrained("north/llama2-7b-PlayFiltered-10000-exporttest", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use north/llama2-7b-PlayFiltered-10000-exporttest with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "north/llama2-7b-PlayFiltered-10000-exporttest" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "north/llama2-7b-PlayFiltered-10000-exporttest", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/north/llama2-7b-PlayFiltered-10000-exporttest
- SGLang
How to use north/llama2-7b-PlayFiltered-10000-exporttest 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 "north/llama2-7b-PlayFiltered-10000-exporttest" \ --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": "north/llama2-7b-PlayFiltered-10000-exporttest", "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 "north/llama2-7b-PlayFiltered-10000-exporttest" \ --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": "north/llama2-7b-PlayFiltered-10000-exporttest", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use north/llama2-7b-PlayFiltered-10000-exporttest with Docker Model Runner:
docker model run hf.co/north/llama2-7b-PlayFiltered-10000-exporttest
Commit History
-
Upload tokenizer_config.json with huggingface_hub
Verified signaturec0a46c8 -
Upload tokenizer.model with huggingface_hub
Verified signature1222adf -
Upload tokenizer.json with huggingface_hub
Verified signaturee2f3853 -
Upload special_tokens_map.json with huggingface_hub
Verified signatureb201c2a -
Upload model.safetensors.index.json with huggingface_hub
Verified signature13ae41a -
Upload model-00006-of-00006.safetensors with huggingface_hub
Verified signatureca352f0 -
Upload model-00005-of-00006.safetensors with huggingface_hub
Verified signatureefafa1c -
Upload model-00004-of-00006.safetensors with huggingface_hub
Verified signature64825aa -
Upload model-00003-of-00006.safetensors with huggingface_hub
Verified signature900f44a -
Upload model-00002-of-00006.safetensors with huggingface_hub
Verified signature2ffe0f3 -
Upload model-00001-of-00006.safetensors with huggingface_hub
Verified signatureaff430d -
Upload generation_config.json with huggingface_hub
Verified signatured32707f -
Upload config.json with huggingface_hub
Verified signaturecd354ad -
Upload LICENSE.txt with huggingface_hub
Verified signature6bd115c -
initial commit
Verified signature7b01979