Instructions to use wasertech/assistant-llama2-7b-chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wasertech/assistant-llama2-7b-chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="wasertech/assistant-llama2-7b-chat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("wasertech/assistant-llama2-7b-chat") model = AutoModelForCausalLM.from_pretrained("wasertech/assistant-llama2-7b-chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wasertech/assistant-llama2-7b-chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wasertech/assistant-llama2-7b-chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wasertech/assistant-llama2-7b-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/wasertech/assistant-llama2-7b-chat
- SGLang
How to use wasertech/assistant-llama2-7b-chat 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 "wasertech/assistant-llama2-7b-chat" \ --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": "wasertech/assistant-llama2-7b-chat", "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 "wasertech/assistant-llama2-7b-chat" \ --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": "wasertech/assistant-llama2-7b-chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use wasertech/assistant-llama2-7b-chat with Docker Model Runner:
docker model run hf.co/wasertech/assistant-llama2-7b-chat
Commit History
-
Create tokenizer.json
d4030f0 -
Delete tokenizer.json
6763a3f -
Create tokenizer_config.json
6f7ed4b -
Upload tokenizer.model
3e9151a -
Create tokenizer.json
9d96cd7 -
Create special_tokens_map.json
57fd6f8 -
Create generation_config.json
703f633 -
Create added_tokens.json
3fea5ab -
Update README.md
b55224c -
Update README.md
be14008 -
Update README.md
d08f7e3 -
Update README.md
b8ff0ab
-
Update README.md
e93245d
-
Update README.md
fa6aedb -
Update README.md
66315e9 -
Update README.md
7eb769b -
Update README.md
9d0ba0f -
Update README.md
da406a4 -
Update README.md
053e68e -
Update README.md
410af88 -
Delete special_tokens_map.json
51d9b6a -
Delete tokenizer.json
cd52986 -
Delete tokenizer_config.json
29d8b22 -
Delete training_args.bin
5d93786 -
Upload pytorch_model.bin.index.json with huggingface_hub
b563904 -
Upload config.json with huggingface_hub
5ba4a2d -
Upload pytorch_model-00001-of-00003.bin with huggingface_hub
f557b29 -
Upload pytorch_model-00003-of-00003.bin with huggingface_hub
0c7e0d2 -
Upload pytorch_model-00002-of-00003.bin with huggingface_hub
669c8e8 -
Delete adapter_model.bin
3c1543e -
Delete adapter_config.json
52e5f60 -
Upload pytorch_model.bin.index.json with huggingface_hub
b22ea96 -
Upload config.json with huggingface_hub
6d67079 -
Upload pytorch_model-00001-of-00003.bin with huggingface_hub
155f3cc -
Upload pytorch_model-00003-of-00003.bin with huggingface_hub
59659fe -
Upload pytorch_model-00002-of-00003.bin with huggingface_hub
dbe5ded -
Upload pytorch_model.bin.index.json with huggingface_hub
1002731 -
Upload config.json with huggingface_hub
f629cb5 -
Upload pytorch_model-00001-of-00003.bin with huggingface_hub
663454a -
Upload pytorch_model-00003-of-00003.bin with huggingface_hub
2f3892b -
Upload pytorch_model-00002-of-00003.bin with huggingface_hub
67eca90 -
assistant-llama2-7b-chat
c30f406 -
Model save
89bb6d6 -
Training in progress, step 3200
409cc89 -
Training in progress, step 3100
e494539 -
Training in progress, step 3000
ea3abb5 -
Training in progress, step 2900
054414c -
Training in progress, step 2800
3a09ff7 -
Training in progress, step 2700
67deb40 -
Training in progress, step 2600
4c1a52b