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
Commit ·
76cf489
1
Parent(s): baf0d3e
Set up files
Browse filesFiles changed (6)
- config.jsonAdded+30
- generation_config.jsonAdded+6
- model.safetensorsAdded+3
- special_tokens_map.jsonAdded+28
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+89
123456789101112131415161718192021222324252627282930{ "_name_or_path": "Locutusque/TinyMistral-248M", "architectures": [ "MistralForCausalLM" ], "attention_dropout": 0.0, "bos_token_id": 1, "eos_token_id": 2, "hidden_act": "silu", "hidden_size": 64, "initializer_range": 0.02, "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, "rope_theta": 10000.0, "router_aux_loss_coef": 0.001, "sliding_window": null, "tie_word_embeddings": false, "torch_dtype": "float32", "transformers_version": "4.37.1", "use_cache": true, "vocab_size": 32005}123456{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 2, "transformers_version": "4.37.1"}123version https://git-lfs.github.com/spec/v1oid sha256:590c50ff5feaa217682bf789878abe2b16910d488b72c3a96f300e1128565cf1size 1925568012345678910111213141516171819202122232425262728{ "additional_special_tokens": [ "<|ASSISTANT|>", "<|USER|>" ], "bos_token": { "content": "<|bos|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "<|bos|>", "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ "add_bos_token": true, "add_eos_token": false, "added_tokens_decoder": { "0": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32000": { "content": "<|bos|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32001": { "content": "<|endoftext|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32002": { "content": "[PAD]", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32003": { "content": "<|ASSISTANT|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "32004": { "content": "<|USER|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "additional_special_tokens": [ "<|ASSISTANT|>", "<|USER|>" ], "bos_token": "<|bos|>", "clean_up_tokenization_spaces": false, "eos_token": "<|endoftext|>", "legacy": true, "max_length": 1536, "model_max_length": 1000000000000000019884624838656, "pad_token": "<|bos|>", "sp_model_kwargs": {}, "spaces_between_special_tokens": false, "stride": 0, "tokenizer_class": "LlamaTokenizer", "truncation_side": "right", "truncation_strategy": "longest_first", "unk_token": "<unk>", "use_default_system_prompt": true}config.jsonAdded+30
generation_config.jsonAdded+6
model.safetensorsAdded+3
special_tokens_map.jsonAdded+28
tokenizer.jsonAdded
tokenizer_config.jsonAdded+89