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