Run this model with HF Jobs
Run YieldInc/aiql01 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/YieldInc/aiql01. 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/YieldInc/aiql01 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/YieldInc/aiql01. 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 YieldInc/aiql01 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use YieldInc/aiql01 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="YieldInc/aiql01")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("YieldInc/aiql01") model = AutoModelForCausalLM.from_pretrained("YieldInc/aiql01", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use YieldInc/aiql01 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "YieldInc/aiql01" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "YieldInc/aiql01", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/YieldInc/aiql01
- SGLang
How to use YieldInc/aiql01 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 "YieldInc/aiql01" \ --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": "YieldInc/aiql01", "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 "YieldInc/aiql01" \ --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": "YieldInc/aiql01", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use YieldInc/aiql01 with Docker Model Runner:
docker model run hf.co/YieldInc/aiql01
Upload 8 files
Browse filesFiles changed (8)
- README.mdAdded+93
- adapter_config.jsonAdded+28
- adapter_model.binAdded+3
- added_tokens.jsonAdded+3
- config.jsonAdded+40
- special_tokens_map.jsonAdded+30
- tokenizer.modelAdded+3
- tokenizer_config.jsonAdded+51
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293---base_model: NousResearch/Llama-2-7b-chat-hftags:- generated_from_trainermodel-index:- name: qlora-out 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. -->
[<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)# qlora-out
This model is a fine-tuned version of [NousResearch/Llama-2-7b-chat-hf](https://huggingface.co/NousResearch/Llama-2-7b-chat-hf) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.3156
## 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: 2- eval_batch_size: 2- seed: 42- gradient_accumulation_steps: 4- total_train_batch_size: 8- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 10- num_epochs: 3
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 0.5579 | 0.09 | 20 | 0.6611 || 0.3651 | 0.18 | 40 | 0.4642 || 0.3704 | 0.26 | 60 | 0.3942 || 0.3868 | 0.35 | 80 | 0.3672 || 0.2843 | 0.44 | 100 | 0.3513 || 0.2535 | 0.53 | 120 | 0.3479 || 0.3797 | 0.61 | 140 | 0.3406 || 0.3702 | 0.7 | 160 | 0.3347 || 0.2986 | 0.79 | 180 | 0.3345 || 0.2952 | 0.88 | 200 | 0.3249 || 0.2109 | 0.96 | 220 | 0.3272 || 0.2744 | 1.05 | 240 | 0.3275 || 0.1762 | 1.14 | 260 | 0.3249 || 0.28 | 1.23 | 280 | 0.3247 || 0.2997 | 1.31 | 300 | 0.3263 || 0.2115 | 1.4 | 320 | 0.3212 || 0.252 | 1.49 | 340 | 0.3229 || 0.2687 | 1.58 | 360 | 0.3246 || 0.1996 | 1.66 | 380 | 0.3205 || 0.2227 | 1.75 | 400 | 0.3164 || 0.5474 | 1.84 | 420 | 0.3145 || 0.2224 | 1.93 | 440 | 0.3121 || 0.3695 | 2.02 | 460 | 0.3129 || 0.1738 | 2.1 | 480 | 0.3182 || 0.1299 | 2.19 | 500 | 0.3178 || 0.2314 | 2.28 | 520 | 0.3159 || 0.2391 | 2.37 | 540 | 0.3179 || 0.2131 | 2.45 | 560 | 0.3178 || 0.1541 | 2.54 | 580 | 0.3154 || 0.2768 | 2.63 | 600 | 0.3153 || 0.1362 | 2.72 | 620 | 0.3155 || 0.2494 | 2.8 | 640 | 0.3157 || 0.1641 | 2.89 | 660 | 0.3154 || 0.1397 | 2.98 | 680 | 0.3156 |
### Framework versions
- Transformers 4.34.1- Pytorch 2.0.1+cu118- Datasets 2.14.6- Tokenizers 0.14.112345678910111213141516171819202122232425262728{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "NousResearch/Llama-2-7b-chat-hf", "bias": "none", "fan_in_fan_out": null, "inference_mode": true, "init_lora_weights": true, "layers_pattern": null, "layers_to_transform": null, "lora_alpha": 16, "lora_dropout": 0.05, "modules_to_save": null, "peft_type": "LORA", "r": 32, "rank_pattern": {}, "revision": null, "target_modules": [ "k_proj", "q_proj", "v_proj", "down_proj", "up_proj", "o_proj", "gate_proj" ], "task_type": "CAUSAL_LM"}123version https://git-lfs.github.com/spec/v1oid sha256:5f28465e34f6669fced283920144596063431a1fcc83a3d1fd972dbf7a9e8eb0size 319977229123{ "<pad>": 32000}12345678910111213141516171819202122232425262728293031323334353637383940{ "_name_or_path": "NousResearch/Llama-2-7b-chat-hf", "architectures": [ "LlamaForCausalLM" ], "attention_bias": false, "bos_token_id": 1, "eos_token_id": 2, "hidden_act": "silu", "hidden_size": 4096, "initializer_range": 0.02, "intermediate_size": 11008, "max_position_embeddings": 4096, "model_type": "llama", "num_attention_heads": 32, "num_hidden_layers": 32, "num_key_value_heads": 32, "pad_token_id": 0, "pretraining_tp": 1, "quantization_config": { "bnb_4bit_compute_dtype": "bfloat16", "bnb_4bit_quant_type": "nf4", "bnb_4bit_use_double_quant": true, "llm_int8_enable_fp32_cpu_offload": false, "llm_int8_has_fp16_weight": false, "llm_int8_skip_modules": null, "llm_int8_threshold": 6.0, "load_in_4bit": true, "load_in_8bit": false, "quant_method": "bitsandbytes" }, "rms_norm_eps": 1e-05, "rope_scaling": null, "rope_theta": 10000.0, "tie_word_embeddings": false, "torch_dtype": "float16", "transformers_version": "4.34.1", "use_cache": false, "vocab_size": 32001}123456789101112131415161718192021222324252627282930{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347size 499723123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "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": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": false } }, "bos_token": "<s>", "clean_up_tokenization_spaces": false, "eos_token": "</s>", "legacy": false, "model_max_length": 1000000000000000019884624838656, "pad_token": "<unk>", "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}README.mdAdded+93
adapter_config.jsonAdded+28
adapter_model.binAdded+3
added_tokens.jsonAdded+3
config.jsonAdded+40
special_tokens_map.jsonAdded+30
tokenizer.modelAdded+3
tokenizer_config.jsonAdded+51