Instructions to use north/llama2_scandi_exporttest4_10k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use north/llama2_scandi_exporttest4_10k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="north/llama2_scandi_exporttest4_10k")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("north/llama2_scandi_exporttest4_10k") model = AutoModelForCausalLM.from_pretrained("north/llama2_scandi_exporttest4_10k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use north/llama2_scandi_exporttest4_10k with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "north/llama2_scandi_exporttest4_10k" # 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_scandi_exporttest4_10k", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/north/llama2_scandi_exporttest4_10k
- SGLang
How to use north/llama2_scandi_exporttest4_10k 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_scandi_exporttest4_10k" \ --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_scandi_exporttest4_10k", "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_scandi_exporttest4_10k" \ --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_scandi_exporttest4_10k", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use north/llama2_scandi_exporttest4_10k with Docker Model Runner:
docker model run hf.co/north/llama2_scandi_exporttest4_10k
Commit History
-
Upload tokenizer_config.json with huggingface_hub
Verified signature42748d8 -
Upload tokenizer.model with huggingface_hub
Verified signatureb1486d8 -
Upload tokenizer.json with huggingface_hub
Verified signaturec95a88f -
Upload special_tokens_map.json with huggingface_hub
Verified signature0702da4 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature54e42c0 -
Upload model-00006-of-00006.safetensors with huggingface_hub
Verified signatureb33c0c0 -
Upload model-00005-of-00006.safetensors with huggingface_hub
Verified signature232d5c6 -
Upload model-00004-of-00006.safetensors with huggingface_hub
Verified signaturedb1750b -
Upload model-00003-of-00006.safetensors with huggingface_hub
Verified signature9446117 -
Upload model-00002-of-00006.safetensors with huggingface_hub
Verified signaturee460279 -
Upload model-00001-of-00006.safetensors with huggingface_hub
Verified signature889f508 -
Upload generation_config.json with huggingface_hub
Verified signatureaf880e4 -
Upload config.json with huggingface_hub
Verified signature50f08ce -
Upload LICENSE.txt with huggingface_hub
Verified signaturece2dd6b -
Upload tokenizer_config.json with huggingface_hub
Verified signaturefdba359 -
Upload tokenizer.model with huggingface_hub
Verified signaturef053b2a -
Upload tokenizer.json with huggingface_hub
Verified signature14954bf -
Upload special_tokens_map.json with huggingface_hub
Verified signaturede7ce7d -
Upload model.safetensors.index.json with huggingface_hub
Verified signaturefd07e7d -
Upload model-00006-of-00006.safetensors with huggingface_hub
Verified signaturecd75f79 -
Upload model-00005-of-00006.safetensors with huggingface_hub
Verified signature93c98b3 -
Upload model-00004-of-00006.safetensors with huggingface_hub
Verified signature997d63f -
Upload model-00003-of-00006.safetensors with huggingface_hub
Verified signature75d8b13 -
Upload model-00002-of-00006.safetensors with huggingface_hub
Verified signature23ae80b -
Upload model-00001-of-00006.safetensors with huggingface_hub
Verified signature2590e4c -
Upload generation_config.json with huggingface_hub
Verified signatureb106662 -
Upload config.json with huggingface_hub
Verified signature7f573ff -
Upload LICENSE.txt with huggingface_hub
Verified signaturef15b5dc -
initial commit
Verified signatureaf7fe23