Text Generation
PEFT
Safetensors
Transformers
mistral
axolotl
lora
conversational
text-generation-inference
Instructions to use eason668/5c367ad0-c93e-461e-bede-f7da411e4df6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use eason668/5c367ad0-c93e-461e-bede-f7da411e4df6 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Intel/neural-chat-7b-v3-3") model = PeftModel.from_pretrained(base_model, "eason668/5c367ad0-c93e-461e-bede-f7da411e4df6") - Transformers
How to use eason668/5c367ad0-c93e-461e-bede-f7da411e4df6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="eason668/5c367ad0-c93e-461e-bede-f7da411e4df6") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("eason668/5c367ad0-c93e-461e-bede-f7da411e4df6") model = AutoModelForCausalLM.from_pretrained("eason668/5c367ad0-c93e-461e-bede-f7da411e4df6", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use eason668/5c367ad0-c93e-461e-bede-f7da411e4df6 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "eason668/5c367ad0-c93e-461e-bede-f7da411e4df6" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "eason668/5c367ad0-c93e-461e-bede-f7da411e4df6", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/eason668/5c367ad0-c93e-461e-bede-f7da411e4df6
- SGLang
How to use eason668/5c367ad0-c93e-461e-bede-f7da411e4df6 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 "eason668/5c367ad0-c93e-461e-bede-f7da411e4df6" \ --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": "eason668/5c367ad0-c93e-461e-bede-f7da411e4df6", "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 "eason668/5c367ad0-c93e-461e-bede-f7da411e4df6" \ --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": "eason668/5c367ad0-c93e-461e-bede-f7da411e4df6", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use eason668/5c367ad0-c93e-461e-bede-f7da411e4df6 with Docker Model Runner:
docker model run hf.co/eason668/5c367ad0-c93e-461e-bede-f7da411e4df6
End of training
Browse files
README.md
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: peft
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: Intel/neural-chat-7b-v3-3
|
| 5 |
+
tags:
|
| 6 |
+
- axolotl
|
| 7 |
+
- base_model:adapter:Intel/neural-chat-7b-v3-3
|
| 8 |
+
- lora
|
| 9 |
+
- transformers
|
| 10 |
+
pipeline_tag: text-generation
|
| 11 |
+
model-index:
|
| 12 |
+
- name: 5c367ad0-c93e-461e-bede-f7da411e4df6
|
| 13 |
+
results: []
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 17 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 18 |
+
|
| 19 |
+
[<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
|
| 20 |
+
<details><summary>See axolotl config</summary>
|
| 21 |
+
|
| 22 |
+
axolotl version: `0.13.0.dev0`
|
| 23 |
+
```yaml
|
| 24 |
+
adapter: lora
|
| 25 |
+
base_model: Intel/neural-chat-7b-v3-3
|
| 26 |
+
bf16: true
|
| 27 |
+
chat_template: llama3
|
| 28 |
+
dataset_prepared_path: null
|
| 29 |
+
datasets:
|
| 30 |
+
- data_files:
|
| 31 |
+
- 55a068229248e10f_train_data.json
|
| 32 |
+
ds_type: json
|
| 33 |
+
format: custom
|
| 34 |
+
path: /workspace/input_data/
|
| 35 |
+
type:
|
| 36 |
+
field_input: input
|
| 37 |
+
field_instruction: instruct
|
| 38 |
+
field_output: output
|
| 39 |
+
format: '{instruction} {input}'
|
| 40 |
+
no_input_format: '{instruction}'
|
| 41 |
+
system_format: '{system}'
|
| 42 |
+
system_prompt: ''
|
| 43 |
+
debug: null
|
| 44 |
+
deepspeed: null
|
| 45 |
+
early_stopping_patience: null
|
| 46 |
+
eval_max_new_tokens: 128
|
| 47 |
+
eval_table_size: null
|
| 48 |
+
evals_per_epoch: 4
|
| 49 |
+
flash_attention: false
|
| 50 |
+
fp16: null
|
| 51 |
+
fsdp: null
|
| 52 |
+
fsdp_config: null
|
| 53 |
+
gradient_accumulation_steps: 4
|
| 54 |
+
gradient_checkpointing: true
|
| 55 |
+
group_by_length: false
|
| 56 |
+
hub_model_id: eason668/5c367ad0-c93e-461e-bede-f7da411e4df6
|
| 57 |
+
hub_private_repo: false
|
| 58 |
+
learning_rate: 0.0002
|
| 59 |
+
load_in_4bit: false
|
| 60 |
+
load_in_8bit: false
|
| 61 |
+
local_rank: null
|
| 62 |
+
logging_steps: 1
|
| 63 |
+
lora_alpha: 16
|
| 64 |
+
lora_dropout: 0.05
|
| 65 |
+
lora_fan_in_fan_out: null
|
| 66 |
+
lora_model_dir: null
|
| 67 |
+
lora_r: 8
|
| 68 |
+
lora_target_linear: true
|
| 69 |
+
lr_scheduler: cosine
|
| 70 |
+
max_steps: 3000
|
| 71 |
+
micro_batch_size: 2
|
| 72 |
+
mlflow_experiment_name: /tmp/55a068229248e10f_train_data.json
|
| 73 |
+
model_type: AutoModelForCausalLM
|
| 74 |
+
num_epochs: 1
|
| 75 |
+
optimizer: adamw_bnb_8bit
|
| 76 |
+
output_dir: miner_id_24
|
| 77 |
+
pad_to_sequence_len: true
|
| 78 |
+
resume_from_checkpoint: null
|
| 79 |
+
s2_attention: null
|
| 80 |
+
sample_packing: false
|
| 81 |
+
save_only_model: false
|
| 82 |
+
save_safetensors: true
|
| 83 |
+
save_steps: 300
|
| 84 |
+
save_strategy: steps
|
| 85 |
+
save_total_limit: 4
|
| 86 |
+
sequence_len: 2048
|
| 87 |
+
special_tokens:
|
| 88 |
+
pad_token: </s>
|
| 89 |
+
strict: false
|
| 90 |
+
tf32: false
|
| 91 |
+
tokenizer_max_length: 2048
|
| 92 |
+
tokenizer_truncation: true
|
| 93 |
+
tokenizer_type: AutoTokenizer
|
| 94 |
+
train_on_inputs: false
|
| 95 |
+
trust_remote_code: true
|
| 96 |
+
val_set_size: 0.1
|
| 97 |
+
wandb_entity: null
|
| 98 |
+
wandb_mode: online
|
| 99 |
+
wandb_project: Gradients-On-Demand
|
| 100 |
+
wandb_run: 5c367ad0-c93e-461e-bede-f7da411e4df6
|
| 101 |
+
wandb_runid: 5c367ad0-c93e-461e-bede-f7da411e4df6
|
| 102 |
+
warmup_steps: 150
|
| 103 |
+
weight_decay: 0.01
|
| 104 |
+
xformers_attention: null
|
| 105 |
+
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
</details><br>
|
| 109 |
+
|
| 110 |
+
# 5c367ad0-c93e-461e-bede-f7da411e4df6
|
| 111 |
+
|
| 112 |
+
This model is a fine-tuned version of [Intel/neural-chat-7b-v3-3](https://huggingface.co/Intel/neural-chat-7b-v3-3) on an unknown dataset.
|
| 113 |
+
It achieves the following results on the evaluation set:
|
| 114 |
+
- Loss: 0.3202
|
| 115 |
+
- Memory/max Mem Active(gib): 16.55
|
| 116 |
+
- Memory/max Mem Allocated(gib): 16.55
|
| 117 |
+
- Memory/device Mem Reserved(gib): 17.43
|
| 118 |
+
|
| 119 |
+
## Model description
|
| 120 |
+
|
| 121 |
+
More information needed
|
| 122 |
+
|
| 123 |
+
## Intended uses & limitations
|
| 124 |
+
|
| 125 |
+
More information needed
|
| 126 |
+
|
| 127 |
+
## Training and evaluation data
|
| 128 |
+
|
| 129 |
+
More information needed
|
| 130 |
+
|
| 131 |
+
## Training procedure
|
| 132 |
+
|
| 133 |
+
### Training hyperparameters
|
| 134 |
+
|
| 135 |
+
The following hyperparameters were used during training:
|
| 136 |
+
- learning_rate: 0.0002
|
| 137 |
+
- train_batch_size: 2
|
| 138 |
+
- eval_batch_size: 2
|
| 139 |
+
- seed: 42
|
| 140 |
+
- distributed_type: multi-GPU
|
| 141 |
+
- num_devices: 8
|
| 142 |
+
- gradient_accumulation_steps: 4
|
| 143 |
+
- total_train_batch_size: 64
|
| 144 |
+
- total_eval_batch_size: 16
|
| 145 |
+
- optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 146 |
+
- lr_scheduler_type: cosine
|
| 147 |
+
- lr_scheduler_warmup_steps: 150
|
| 148 |
+
- training_steps: 3000
|
| 149 |
+
|
| 150 |
+
### Training results
|
| 151 |
+
|
| 152 |
+
| Training Loss | Epoch | Step | Validation Loss | Mem Active(gib) | Mem Allocated(gib) | Mem Reserved(gib) |
|
| 153 |
+
|:-------------:|:------:|:----:|:---------------:|:---------------:|:------------------:|:-----------------:|
|
| 154 |
+
| No log | 0 | 0 | 2.5680 | 14.97 | 14.97 | 16.11 |
|
| 155 |
+
| 1.2107 | 1.6641 | 750 | 1.2411 | 16.55 | 16.55 | 16.75 |
|
| 156 |
+
| 0.6864 | 3.3265 | 1500 | 0.7671 | 16.55 | 16.55 | 17.43 |
|
| 157 |
+
| 0.3838 | 4.9906 | 2250 | 0.4218 | 16.55 | 16.55 | 17.43 |
|
| 158 |
+
| 0.2646 | 6.6530 | 3000 | 0.3202 | 16.55 | 16.55 | 17.43 |
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
### Framework versions
|
| 162 |
+
|
| 163 |
+
- PEFT 0.17.0
|
| 164 |
+
- Transformers 4.55.2
|
| 165 |
+
- Pytorch 2.7.1+cu126
|
| 166 |
+
- Datasets 4.0.0
|
| 167 |
+
- Tokenizers 0.21.4
|