Text Generation
Transformers
Safetensors
mistral
Generated from Trainer
trl
sft
conversational
text-generation-inference
Run this model with HF Jobs
Run Death-Raider/SFT-Mistral on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/Death-Raider/SFT-Mistral. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Death-Raider/SFT-Mistral on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/Death-Raider/SFT-Mistral. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/Death-Raider/SFT-Mistral. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use Death-Raider/SFT-Mistral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Death-Raider/SFT-Mistral with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Death-Raider/SFT-Mistral") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Death-Raider/SFT-Mistral") model = AutoModelForCausalLM.from_pretrained("Death-Raider/SFT-Mistral", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Death-Raider/SFT-Mistral with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Death-Raider/SFT-Mistral" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Death-Raider/SFT-Mistral", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Death-Raider/SFT-Mistral
- SGLang
How to use Death-Raider/SFT-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 "Death-Raider/SFT-Mistral" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Death-Raider/SFT-Mistral", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Death-Raider/SFT-Mistral" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Death-Raider/SFT-Mistral", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Death-Raider/SFT-Mistral with Docker Model Runner:
docker model run hf.co/Death-Raider/SFT-Mistral
model updated
Browse filesFiles changed (7)
34 unmodified lines3536373839404142434434 unmodified lines### Framework versions- TRL: 0.23.0- Transformers: 4.56.1- Pytorch: 2.8.0.dev20250319+cu128- Datasets: 4.1.1- Tokenizers: 0.22.0## Citations34 unmodified lines3536373839404142434434 unmodified lines### Framework versions- TRL: 0.23.0- Transformers: 4.56.2- Pytorch: 2.8.0.dev20250319+cu128- Datasets: 4.1.1- Tokenizers: 0.22.1## Citations
19 unmodified lines2021222324252619 unmodified lines"rope_theta": 1000000.0,"sliding_window": null,"tie_word_embeddings": false,"transformers_version": "4.56.1","use_cache": true,"vocab_size": 32768}19 unmodified lines2021222324252619 unmodified lines"rope_theta": 1000000.0,"sliding_window": null,"tie_word_embeddings": false,"transformers_version": "4.56.2","use_cache": true,"vocab_size": 32768}
3 unmodified lines456783 unmodified lines"eos_token_id": [2],"transformers_version": "4.56.1"}3 unmodified lines456783 unmodified lines"eos_token_id": [2],"transformers_version": "4.56.2"}
123version https://git-lfs.github.com/spec/v1oid sha256:ae7ea5269029fb6ffbad2e2c0f57151f57568ef886f278fcebc61cc65dc6485asize 4949453792123version https://git-lfs.github.com/spec/v1oid sha256:3307ec8783bbde986bd57a69502e78c316911ce6cb2467a84dbada2414c0388csize 4949453792
123version https://git-lfs.github.com/spec/v1oid sha256:9da20522c5b1d916981cf67da975a0c2e3baac27faa237c1a27d18852ebef2f7size 4999819336123version https://git-lfs.github.com/spec/v1oid sha256:f587f262d11d90d35eb3687481f53e0de623ad09122f4065b9f03d310ea6be7csize 4999819336
123version https://git-lfs.github.com/spec/v1oid sha256:efdb19e874aa9eb148f7c653296df16c8929d07464c61bd2476327ce77f3999asize 4546807800123version https://git-lfs.github.com/spec/v1oid sha256:e349cbbfb4fec5c0db99e8d7e35fbb6a05fb20895eceaa59252350060ecab83dsize 4546807800
123version https://git-lfs.github.com/spec/v1oid sha256:33eec02fdb34795430af82b4035af6c76b29b0009d1bd2125c5b0dac4566fe83size 6225123version https://git-lfs.github.com/spec/v1oid sha256:5321a1744898d7f1ae05c32d04e5f69fdd0b8337d9ef6739094ff75fef468a34size 6225
README.md+2-2
config.json+1-1
generation_config.json+1-1
model-00001-of-00003.safetensors+1-1
model-00002-of-00003.safetensors+1-1
model-00003-of-00003.safetensors+1-1
training_args.bin+1-1