Run this model with HF Jobs
Run artek0chumak/TestMixtral 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/artek0chumak/TestMixtral. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs and Transformers to run batch inference with https://huggingface.co/artek0chumak/TestMixtral on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs and Lighteval to evaluate https://huggingface.co/artek0chumak/TestMixtral. 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/artek0chumak/TestMixtral with Transformers and bitsandbytes. 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 artek0chumak/TestMixtral with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use artek0chumak/TestMixtral with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="artek0chumak/TestMixtral")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("artek0chumak/TestMixtral") model = AutoModelForCausalLM.from_pretrained("artek0chumak/TestMixtral", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use artek0chumak/TestMixtral with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "artek0chumak/TestMixtral" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "artek0chumak/TestMixtral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/artek0chumak/TestMixtral
- SGLang
How to use artek0chumak/TestMixtral 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 "artek0chumak/TestMixtral" \ --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": "artek0chumak/TestMixtral", "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 "artek0chumak/TestMixtral" \ --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": "artek0chumak/TestMixtral", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use artek0chumak/TestMixtral with Docker Model Runner:
docker model run hf.co/artek0chumak/TestMixtral
change config
Browse filesFiles changed (3)
11 unmodified lines121314151617181920211 unmodified line232425262728293011 unmodified lines"intermediate_size": 256,"max_position_embeddings": 32768,"model_type": "mixtral","num_attention_heads": 32,"num_experts_per_tok": 4,"num_hidden_layers": 12,"num_key_value_heads": 8,"num_local_experts": 4,"output_router_logits": false,"rms_norm_eps": 1e-06,1 unmodified line"router_aux_loss_coef": 0.001,"sliding_window": null,"tie_word_embeddings": false,"torch_dtype": "bfloat16","transformers_version": "4.39.3","use_cache": true,"vocab_size": 32005}11 unmodified lines121314151617181920211 unmodified line232425262728293011 unmodified lines"intermediate_size": 256,"max_position_embeddings": 32768,"model_type": "mixtral","num_attention_heads": 2,"num_experts_per_tok": 4,"num_hidden_layers": 12,"num_key_value_heads": 1,"num_local_experts": 4,"output_router_logits": false,"rms_norm_eps": 1e-06,1 unmodified line"router_aux_loss_coef": 0.001,"sliding_window": null,"tie_word_embeddings": false,"torch_dtype": "float32","transformers_version": "4.38.2","use_cache": true,"vocab_size": 32005}
1 unmodified line234561 unmodified line"_from_model_config": true,"bos_token_id": 1,"eos_token_id": 2,"transformers_version": "4.39.3"}1 unmodified line234561 unmodified line"_from_model_config": true,"bos_token_id": 1,"eos_token_id": 2,"transformers_version": "4.38.2"}
123version https://git-lfs.github.com/spec/v1oid sha256:a260b8590ae82e8e99c7b9963bebb6c5279db84f8a1440845b2ed6546e72aef6size 13194088123version https://git-lfs.github.com/spec/v1oid sha256:3e68fe9d7fd1316bb75d8ddd3450a9deaec8d3ef684e84c55517fd26b9848a83size 26459296
config.json+4-4
generation_config.json+1-1
model.safetensors+2-2