Text Generation
Transformers
Safetensors
llama
trl
dpo
Generated from Trainer
conversational
text-generation-inference
Instructions to use tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO") model = AutoModelForCausalLM.from_pretrained("tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO", 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 tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO
- SGLang
How to use tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO 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 "tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO" \ --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": "tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO", "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 "tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO" \ --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": "tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO with Docker Model Runner:
docker model run hf.co/tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO
Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO
This model is a fine-tuned version of tsavage68/Transaminitis_L3_1000rate_1e7_SFT on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.7574
- Rewards/chosen: -8.9677
- Rewards/rejected: -11.1818
- Rewards/accuracies: 0.75
- Rewards/margins: 2.2141
- Logps/rejected: -55.8273
- Logps/chosen: -48.4265
- Logits/rejected: 0.3180
- Logits/chosen: 0.3178
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: 1e-05
- train_batch_size: 2
- eval_batch_size: 1
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 4
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: cosine
- lr_scheduler_warmup_steps: 100
- training_steps: 475
Training results
| Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1.3908 | 0.2 | 25 | 1.2815 | -0.1831 | -0.0153 | 0.4600 | -0.1678 | -18.6058 | -19.1447 | -0.7380 | -0.7444 |
| 0.7696 | 0.4 | 50 | 0.6447 | -2.0796 | -3.1294 | 0.4800 | 1.0498 | -28.9860 | -25.4662 | -0.6995 | -0.6959 |
| 1.4448 | 0.6 | 75 | 1.1250 | 2.3681 | 1.6567 | 0.5400 | 0.7115 | -13.0325 | -10.6404 | -1.2011 | -1.1986 |
| 5.4772 | 0.8 | 100 | 0.9871 | -6.9709 | -6.8051 | 0.4600 | -0.1658 | -41.2385 | -41.7705 | 0.9489 | 0.9489 |
| 2.2944 | 1.0 | 125 | 0.8798 | -10.1674 | -10.2198 | 0.5400 | 0.0523 | -52.6206 | -52.4257 | 0.6962 | 0.6962 |
| 0.8336 | 1.2 | 150 | 0.8186 | -9.6977 | -9.5821 | 0.4600 | -0.1156 | -50.4949 | -50.8599 | 0.4903 | 0.4903 |
| 0.7825 | 1.4 | 175 | 0.7237 | -9.6813 | -9.6518 | 0.5400 | -0.0295 | -50.7273 | -50.8051 | 0.4625 | 0.4626 |
| 0.7932 | 1.6 | 200 | 0.7522 | -9.9879 | -9.9031 | 0.4600 | -0.0848 | -51.5651 | -51.8274 | 0.4098 | 0.4098 |
| 0.7731 | 1.8 | 225 | 0.8182 | -9.7026 | -9.5887 | 0.4600 | -0.1139 | -50.5170 | -50.8761 | 0.3866 | 0.3866 |
| 0.7804 | 2.0 | 250 | 0.7488 | -9.8729 | -9.7896 | 0.4500 | -0.0833 | -51.1867 | -51.4438 | 0.3206 | 0.3206 |
| 0.7516 | 2.2 | 275 | 0.7189 | -9.4725 | -9.4301 | 0.4400 | -0.0424 | -49.9884 | -50.1092 | 0.2071 | 0.2071 |
| 0.7694 | 2.4 | 300 | 0.7305 | -9.5857 | -9.5207 | 0.4300 | -0.0651 | -50.2902 | -50.4867 | 0.2008 | 0.2008 |
| 0.7501 | 2.6 | 325 | 0.7492 | -9.6520 | -9.5783 | 0.4600 | -0.0737 | -50.4823 | -50.7074 | 0.2615 | 0.2615 |
| 0.7308 | 2.8 | 350 | 0.6952 | -9.5047 | -9.5153 | 0.4800 | 0.0106 | -50.2725 | -50.2166 | 0.2711 | 0.2711 |
| 0.7173 | 3.0 | 375 | 0.6857 | -9.3866 | -9.5399 | 0.5400 | 0.1533 | -50.3543 | -49.8229 | 0.2067 | 0.2067 |
| 0.6094 | 3.2 | 400 | 0.5305 | -8.8179 | -10.0709 | 0.75 | 1.2530 | -52.1245 | -47.9272 | 0.1834 | 0.1832 |
| 0.3894 | 3.4 | 425 | 0.7364 | -9.0047 | -11.3681 | 0.7700 | 2.3633 | -56.4483 | -48.5501 | 0.3452 | 0.3450 |
| 0.4838 | 3.6 | 450 | 0.7539 | -8.9636 | -11.1930 | 0.75 | 2.2294 | -55.8647 | -48.4129 | 0.3187 | 0.3184 |
| 0.2744 | 3.8 | 475 | 0.7574 | -8.9677 | -11.1818 | 0.75 | 2.2141 | -55.8273 | -48.4265 | 0.3180 | 0.3178 |
Framework versions
- Transformers 4.40.2
- Pytorch 2.0.0+cu117
- Datasets 2.19.1
- Tokenizers 0.19.1
- Downloads last month
- 6
Model tree for tsavage68/Transaminitis_L3_475steps_1e5rate_03beta_CSFTDPO
Base model
meta-llama/Meta-Llama-3-8B-Instruct