Instructions to use msk18/actualfinetune-mistral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use msk18/actualfinetune-mistral with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="msk18/actualfinetune-mistral")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("msk18/actualfinetune-mistral") model = AutoModelForCausalLM.from_pretrained("msk18/actualfinetune-mistral", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use msk18/actualfinetune-mistral with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "msk18/actualfinetune-mistral" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "msk18/actualfinetune-mistral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/msk18/actualfinetune-mistral
- SGLang
How to use msk18/actualfinetune-mistral 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 "msk18/actualfinetune-mistral" \ --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": "msk18/actualfinetune-mistral", "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 "msk18/actualfinetune-mistral" \ --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": "msk18/actualfinetune-mistral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use msk18/actualfinetune-mistral with Docker Model Runner:
docker model run hf.co/msk18/actualfinetune-mistral
Download model-00002-of-00006.safetensors from msk18/actualfinetune-mistral: direct link, hf CLI and curl.
- Browser
- Download file 4.9 GB
-
https://huggingface.co/msk18/actualfinetune-mistral/resolve/main/model-00002-of-00006.safetensors
- Command line
-
hf download hf://msk18/actualfinetune-mistral/model-00002-of-00006.safetensors
-
curl -L -o model-00002-of-00006.safetensors https://huggingface.co/msk18/actualfinetune-mistral/resolve/main/model-00002-of-00006.safetensors
4.9 GB
- Xet hash:
- 0baf7929dbe1b16d825fa0b653b92783f677b86b18884a22b0c1e95e254cb901
- Size of remote file:
- 4.9 GB
- SHA256:
- 50da31860da534c4071949f5072b3d5730b813b8478b4ef7c974315210bad91c
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.