Text Generation
Transformers
PyTorch
English
mistral
instruct
finetune
chatml
gpt4
synthetic data
distillation
conversational
text-generation-inference
Run this model with HF Jobs
Run openvoid/Prox-1-Mistral-7B 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/openvoid/Prox-1-Mistral-7B. 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/openvoid/Prox-1-Mistral-7B 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/openvoid/Prox-1-Mistral-7B. 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/openvoid/Prox-1-Mistral-7B. 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 openvoid/Prox-1-Mistral-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openvoid/Prox-1-Mistral-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="openvoid/Prox-1-Mistral-7B") 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("openvoid/Prox-1-Mistral-7B") model = AutoModelForCausalLM.from_pretrained("openvoid/Prox-1-Mistral-7B", 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 openvoid/Prox-1-Mistral-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "openvoid/Prox-1-Mistral-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openvoid/Prox-1-Mistral-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/openvoid/Prox-1-Mistral-7B
- SGLang
How to use openvoid/Prox-1-Mistral-7B 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 "openvoid/Prox-1-Mistral-7B" \ --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": "openvoid/Prox-1-Mistral-7B", "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 "openvoid/Prox-1-Mistral-7B" \ --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": "openvoid/Prox-1-Mistral-7B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use openvoid/Prox-1-Mistral-7B with Docker Model Runner:
docker model run hf.co/openvoid/Prox-1-Mistral-7B
Upload folder using huggingface_hub
Browse filesFiles changed (10)
- README.mdAdded+28
- added_tokens.jsonAdded+4
- config.jsonAdded+26
- config/prox-mistral-7b.ymlAdded+75
- generation_config.jsonAdded+6
- pytorch_model.binAdded+3
- special_tokens_map.jsonAdded+24
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+61
- training_args.binAdded+3
12345678910111213141516171819202122232425262728---base_model: cognitivecomputations/dolphin-2.1-mistral-7btags:- mistral- instruct- finetune- chatml- gpt4- synthetic data- distillationmodel-index:- name: Prox-1-Mistral-7B results: []license: apache-2.0language:- en---
# Prox 1.0 - Mistral 7B

## Model description
Prox 1.0 Mistral 7B represents a significant evolution in the Mistral Fine-tune series, having been augmented with an extensive array of datasets focused on hacking instructions and Q&A content.
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)1234{ "<|im_end|>": 32000, "<|im_start|>": 32001}1234567891011121314151617181920212223242526{ "_name_or_path": "cognitivecomputations/dolphin-2.1-mistral-7b", "architectures": [ "MistralForCausalLM" ], "attention_dropout": 0.0, "bos_token_id": 1, "eos_token_id": 32000, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 14336, "max_position_embeddings": 32768, "model_type": "mistral", "num_attention_heads": 32, "num_hidden_layers": 32, "num_key_value_heads": 8, "rms_norm_eps": 1e-05, "rope_theta": 10000.0, "sliding_window": 4096, "tie_word_embeddings": false, "torch_dtype": "bfloat16", "transformers_version": "4.36.2", "use_cache": false, "vocab_size": 32002}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475base_model: cognitivecomputations/dolphin-2.1-mistral-7bbase_model_config: cognitivecomputations/dolphin-2.1-mistral-7bmodel_type: MistralForCausalLMtokenizer_type: LlamaTokenizeris_mistral_derived_model: true
load_in_8bit: falseload_in_4bit: falsestrict: false
datasets: - path: /workspace/datasets/prox/prox.json type: alpaca prompt_style: chatml - path: teknium/openhermes type: alpaca prompt_style: chatml
hub_model_id: xenofold/prox-1.0-mistral-7bhf_use_auth_token: true
dataset_prepared_path: last_run_preparedval_set_size: 0.005output_dir: /workspace/prox-mistral-7b
sequence_len: 8192sample_packing: truepad_to_sequence_len: true
wandb_project: proxwandb_entity:wandb_watch:wandb_run_id:wandb_log_model:
gradient_accumulation_steps: 4micro_batch_size: 6num_epochs: 4adam_beta2: 0.95adam_epsilon: 0.00001max_grad_norm: 1.0lr_scheduler: cosinelearning_rate: 0.000006
train_on_inputs: falsegroup_by_length: falsebf16: truefp16: falsetf32: false
gradient_checkpointing: trueearly_stopping_patience:resume_from_checkpoint:local_rank:logging_steps: 1xformers_attention:flash_attention: true
warmup_steps: 100eval_steps: 0.05eval_table_size:eval_table_max_new_tokens:save_steps:debug:deepspeed: deepspeed/zero2.jsonweight_decay: 0.1fsdp:fsdp_config:special_tokens: bos_token: "<s>" eos_token: "<|im_end|>" unk_token: "<unk>"tokens: - "<|im_start|>" - "<|im_end|>"123456{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 2, "transformers_version": "4.36.2"}123version https://git-lfs.github.com/spec/v1oid sha256:15907ca4ba3a26cb66ee9a5a5c3dd5fd778f26d03fef3d0a7a3b3ea9f62feda0size 14483537189123456789101112131415161718192021222324{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": "</s>", "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055size 49344312345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "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": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false }, "32001": { "content": "<|im_start|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": false } }, "additional_special_tokens": [], "bos_token": "<s>", "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}", "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "legacy": true, "model_max_length": 1000000000000000019884624838656, "pad_token": "</s>", "sp_model_kwargs": {}, "spaces_between_special_tokens": false, "tokenizer_class": "LlamaTokenizer", "trust_remote_code": false, "unk_token": "<unk>", "use_default_system_prompt": true, "use_fast": true}123version https://git-lfs.github.com/spec/v1oid sha256:caea9d73aee6ddad9e16cf64bf12dff613c6bff73b956f2433ecf6abf2df6a40size 6075README.mdAdded+28
added_tokens.jsonAdded+4
config.jsonAdded+26
config/prox-mistral-7b.ymlAdded+75
generation_config.jsonAdded+6
pytorch_model.binAdded+3
special_tokens_map.jsonAdded+24
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+61
training_args.binAdded+3