Run this model with HF Jobs
Run justinlamlamlam/open_orca_chat 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/justinlamlamlam/open_orca_chat. 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/justinlamlamlam/open_orca_chat 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/justinlamlamlam/open_orca_chat. 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/justinlamlamlam/open_orca_chat. 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 justinlamlamlam/open_orca_chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use justinlamlamlam/open_orca_chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="justinlamlamlam/open_orca_chat")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("justinlamlamlam/open_orca_chat") model = AutoModelForCausalLM.from_pretrained("justinlamlamlam/open_orca_chat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use justinlamlamlam/open_orca_chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "justinlamlamlam/open_orca_chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "justinlamlamlam/open_orca_chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/justinlamlamlam/open_orca_chat
- SGLang
How to use justinlamlamlam/open_orca_chat 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 "justinlamlamlam/open_orca_chat" \ --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": "justinlamlamlam/open_orca_chat", "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 "justinlamlamlam/open_orca_chat" \ --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": "justinlamlamlam/open_orca_chat", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use justinlamlamlam/open_orca_chat with Docker Model Runner:
docker model run hf.co/justinlamlamlam/open_orca_chat
justinlamlamlam/open_orca_chat
Browse filesFiles changed (10)
- README.mdAdded+51
- adapter_config.jsonAdded+28
- adapter_model.safetensorsAdded+3
- added_tokens.jsonAdded+5
- generation_config.jsonAdded+6
- special_tokens_map.jsonAdded+30
- tokenizer.jsonAdded
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+69
- training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051---license: apache-2.0base_model: Open-Orca/Mistral-7B-OpenOrcatags:- generated_from_trainermodel-index:- name: open_orca_chat results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# open_orca_chat
This model is a fine-tuned version of [Open-Orca/Mistral-7B-OpenOrca](https://huggingface.co/Open-Orca/Mistral-7B-OpenOrca) on an unknown dataset.
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 0.0002- train_batch_size: 4- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 4- total_train_batch_size: 16- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: constant- lr_scheduler_warmup_ratio: 0.03- training_steps: 1000
### Framework versions
- Transformers 4.35.2- Pytorch 2.1.2- Datasets 2.15.0- Tokenizers 0.15.112345678910111213141516171819202122232425262728{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "Open-Orca/Mistral-7B-OpenOrca", "bias": "none", "fan_in_fan_out": false, "inference_mode": false, "init_lora_weights": true, "layers_pattern": null, "layers_to_transform": null, "lora_alpha": 8, "lora_dropout": 0.0, "modules_to_save": null, "peft_type": "LORA", "r": 8, "rank_pattern": {}, "revision": null, "target_modules": [ "v_proj", "o_proj", "up_proj", "q_proj", "down_proj", "k_proj", "gate_proj" ], "task_type": "CAUSAL_LM"}123version https://git-lfs.github.com/spec/v1oid sha256:2b06cc85dcff0bbc401f6f3cae6865526083095c380d6bb10055743fad10a36asize 8394529612345{ "<PAD>": 32002, "<|im_end|>": 32000, "<|im_start|>": 32001}123456{ "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 32000, "transformers_version": "4.35.2"}123456789101112131415161718192021222324252627282930{ "bos_token": { "content": "<s>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false }, "eos_token": { "content": "<|im_end|>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<PAD>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055size 493443123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869{ "add_bos_token": true, "add_eos_token": false, "added_tokens_decoder": { "0": { "content": "<unk>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "1": { "content": "<s>", "lstrip": true, "normalized": false, "rstrip": true, "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": true }, "32001": { "content": "<|im_start|>", "lstrip": true, "normalized": false, "rstrip": true, "single_word": false, "special": true }, "32002": { "content": "<PAD>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "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": "<PAD>", "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:007b0dd6ea451ef8ae59385d81928e475684ce5b7a0d9349be54e9dee85f14cfsize 4600README.mdAdded+51
adapter_config.jsonAdded+28
adapter_model.safetensorsAdded+3
added_tokens.jsonAdded+5
generation_config.jsonAdded+6
special_tokens_map.jsonAdded+30
tokenizer.jsonAdded
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+69
training_args.binAdded+3