Instructions to use roif123/mistral_7b-instruct-data2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use roif123/mistral_7b-instruct-data2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="roif123/mistral_7b-instruct-data2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("roif123/mistral_7b-instruct-data2") model = AutoModelForCausalLM.from_pretrained("roif123/mistral_7b-instruct-data2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use roif123/mistral_7b-instruct-data2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "roif123/mistral_7b-instruct-data2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "roif123/mistral_7b-instruct-data2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/roif123/mistral_7b-instruct-data2
- SGLang
How to use roif123/mistral_7b-instruct-data2 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 "roif123/mistral_7b-instruct-data2" \ --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": "roif123/mistral_7b-instruct-data2", "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 "roif123/mistral_7b-instruct-data2" \ --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": "roif123/mistral_7b-instruct-data2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use roif123/mistral_7b-instruct-data2 with Docker Model Runner:
docker model run hf.co/roif123/mistral_7b-instruct-data2
Commit History
-
Update model.safetensors.index.json
Verified signaturee32ebbc -
Update model.safetensors.index.json
Verified signaturea80cf70 -
Update model.safetensors.index.json
Verified signature13f2fa3 -
Upload 2 files
Verified signaturedd07578 -
Create config.json
Verified signature47c4232 -
Update adapter_config.json
Verified signatureed3c1b1 -
Delete tokenizer.json
Verified signature032d757 -
Delete pytorch_model.bin.index.json
Verified signature3f7eca3 -
Delete tokenizer.model
Verified signature59f7bcc -
Delete tokenizer_config.json
Verified signature8818205 -
Delete config.json
Verified signature4681f01 -
Upload 3 files
Verified signaturebf300bf -
Upload tokenizer_config.json
Verified signature8137a0b -
Update config.json
Verified signaturea615080 -
Update adapter_config.json
Verified signature3c1892c -
Update config.json
Verified signaturedb59c9e -
Upload config.json
Verified signature00c2212
-
Upload model
Verified signaturee884126 -
initial commit
Verified signatured63de96