Text Generation
Transformers
Safetensors
mistral
alignment-handbook
trl
sft
Generated from Trainer
conversational
text-generation-inference
Run this model with HF Jobs
Run interview-eval/zephyr-7b-stem-test 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/interview-eval/zephyr-7b-stem-test. 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/interview-eval/zephyr-7b-stem-test 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/interview-eval/zephyr-7b-stem-test. 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/interview-eval/zephyr-7b-stem-test. 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 interview-eval/zephyr-7b-stem-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use interview-eval/zephyr-7b-stem-test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="interview-eval/zephyr-7b-stem-test") 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("interview-eval/zephyr-7b-stem-test") model = AutoModelForCausalLM.from_pretrained("interview-eval/zephyr-7b-stem-test", 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 interview-eval/zephyr-7b-stem-test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "interview-eval/zephyr-7b-stem-test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "interview-eval/zephyr-7b-stem-test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/interview-eval/zephyr-7b-stem-test
- SGLang
How to use interview-eval/zephyr-7b-stem-test 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 "interview-eval/zephyr-7b-stem-test" \ --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": "interview-eval/zephyr-7b-stem-test", "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 "interview-eval/zephyr-7b-stem-test" \ --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": "interview-eval/zephyr-7b-stem-test", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use interview-eval/zephyr-7b-stem-test with Docker Model Runner:
docker model run hf.co/interview-eval/zephyr-7b-stem-test
Juyoung Suk commited on
Model save
Browse filesFiles changed (4)
- README.md+12-16
- all_results.json+4-9
- train_results.json+4-4
- trainer_state.json+51-43
2 unmodified lines34567891011121314151617184 unmodified lines23242526272829303130 unmodified lines62636465666768697071727374752 unmodified lineslicense: apache-2.0base_model: alignment-handbook/zephyr-7b-sft-fulltags:- alignment-handbook- trl- sft- generated_from_trainer- trl- sft- alignment-handbook- generated_from_trainerdatasets:- scottsuk0306/DepthQAmodel-index:- name: zephyr-7b-stem-testresults: []4 unmodified lines# zephyr-7b-stem-testThis model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-full](https://huggingface.co/alignment-handbook/zephyr-7b-sft-full) on the scottsuk0306/DepthQA dataset.It achieves the following results on the evaluation set:- Loss: 0.4115## Model description30 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 1.1097 | 1.0 | 1 | 1.1095 || 1.1097 | 2.0 | 2 | 1.2840 || 1.1097 | 3.0 | 3 | 1.0815 || 1.1097 | 4.0 | 4 | 0.8740 || 1.0878 | 5.0 | 5 | 0.7459 || 1.0878 | 6.0 | 6 | 0.6034 || 1.0878 | 7.0 | 7 | 0.5202 || 1.0878 | 8.0 | 8 | 0.4572 || 1.0878 | 9.0 | 9 | 0.4221 |### Framework versions2 unmodified lines3456789101112134 unmodified lines18192021222324252630 unmodified lines5758596061626364656667686970712 unmodified lineslicense: apache-2.0base_model: alignment-handbook/zephyr-7b-sft-fulltags:- trl- sft- generated_from_trainerdatasets:- generatormodel-index:- name: zephyr-7b-stem-testresults: []4 unmodified lines# zephyr-7b-stem-testThis model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-full](https://huggingface.co/alignment-handbook/zephyr-7b-sft-full) on the generator dataset.It achieves the following results on the evaluation set:- Loss: 0.4085## Model description30 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 1.1097 | 1.0 | 1 | 1.1095 || 1.1097 | 2.0 | 2 | 1.2839 || 1.1097 | 3.0 | 3 | 1.0813 || 1.1097 | 4.0 | 4 | 0.8745 || 1.0879 | 5.0 | 5 | 0.7450 || 1.0879 | 6.0 | 6 | 0.6025 || 1.0879 | 7.0 | 7 | 0.5167 || 1.0879 | 8.0 | 8 | 0.4539 || 1.0879 | 9.0 | 9 | 0.4191 || 0.547 | 10.0 | 10 | 0.4085 |### Framework versions
1234567891011121314{"epoch": 10.0,"eval_loss": 0.41154685616493225,"eval_runtime": 3.2821,"eval_samples": 848,"eval_samples_per_second": 15.234,"eval_steps_per_second": 0.305,"total_flos": 8375186227200.0,"train_loss": 0.0,"train_runtime": 1.4567,"train_samples": 848,"train_samples_per_second": 343.244,"train_steps_per_second": 6.865}123456789{"epoch": 10.0,"total_flos": 8375186227200.0,"train_loss": 0.8196125388145447,"train_runtime": 303.2537,"train_samples": 848,"train_samples_per_second": 1.649,"train_steps_per_second": 0.033}
123456789{"epoch": 10.0,"total_flos": 8375186227200.0,"train_loss": 0.0,"train_runtime": 1.4567,"train_samples": 848,"train_samples_per_second": 343.244,"train_steps_per_second": 6.865}123456789{"epoch": 10.0,"total_flos": 8375186227200.0,"train_loss": 0.8196125388145447,"train_runtime": 303.2537,"train_samples": 848,"train_samples_per_second": 1.649,"train_steps_per_second": 0.033}
9 unmodified lines101112131415161 unmodified line181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131149 unmodified lines"log_history": [{"epoch": 1.0,"grad_norm": 17.810282459441467,"learning_rate": 1e-05,"loss": 1.1097,"step": 11 unmodified line{"epoch": 1.0,"eval_loss": 1.1095243692398071,"eval_runtime": 2.8023,"eval_samples_per_second": 17.843,"eval_steps_per_second": 0.357,"step": 1},{"epoch": 2.0,"eval_loss": 1.2839607000350952,"eval_runtime": 2.6692,"eval_samples_per_second": 18.732,"eval_steps_per_second": 0.375,"step": 2},{"epoch": 3.0,"eval_loss": 1.0814800262451172,"eval_runtime": 2.6746,"eval_samples_per_second": 18.695,"eval_steps_per_second": 0.374,"step": 3},{"epoch": 4.0,"eval_loss": 0.874021053314209,"eval_runtime": 2.6724,"eval_samples_per_second": 18.71,"eval_steps_per_second": 0.374,"step": 4},{"epoch": 5.0,"grad_norm": 18.20399999295951,"learning_rate": 5.8682408883346535e-06,"loss": 1.0878,"step": 5},{"epoch": 5.0,"eval_loss": 0.7459021210670471,"eval_runtime": 2.6898,"eval_samples_per_second": 18.589,"eval_steps_per_second": 0.372,"step": 5},{"epoch": 6.0,"eval_loss": 0.6033510565757751,"eval_runtime": 2.6879,"eval_samples_per_second": 18.602,"eval_steps_per_second": 0.372,"step": 6},{"epoch": 7.0,"eval_loss": 0.5201848745346069,"eval_runtime": 2.6772,"eval_samples_per_second": 18.676,"eval_steps_per_second": 0.374,"step": 7},{"epoch": 8.0,"eval_loss": 0.4572071433067322,"eval_runtime": 2.6696,"eval_samples_per_second": 18.73,"eval_steps_per_second": 0.375,"step": 8},{"epoch": 9.0,"eval_loss": 0.4221082031726837,"eval_runtime": 2.677,"eval_samples_per_second": 18.677,"eval_steps_per_second": 0.374,"step": 9},{"epoch": 10.0,"grad_norm": 3.0214434738231213,"learning_rate": 0.0,"loss": 0.5493,"step": 10},{"epoch": 10.0,"step": 10,"total_flos": 8375186227200.0,"train_loss": 0.0,"train_runtime": 1.4567,"train_samples_per_second": 343.244,"train_steps_per_second": 6.865}],"logging_steps": 5,9 unmodified lines101112131415161 unmodified line181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211229 unmodified lines"log_history": [{"epoch": 1.0,"grad_norm": 17.81055096288918,"learning_rate": 1e-05,"loss": 1.1097,"step": 11 unmodified line{"epoch": 1.0,"eval_loss": 1.1095243692398071,"eval_runtime": 2.808,"eval_samples_per_second": 17.806,"eval_steps_per_second": 0.356,"step": 1},{"epoch": 2.0,"eval_loss": 1.2839224338531494,"eval_runtime": 2.6721,"eval_samples_per_second": 18.712,"eval_steps_per_second": 0.374,"step": 2},{"epoch": 3.0,"eval_loss": 1.081336259841919,"eval_runtime": 2.6698,"eval_samples_per_second": 18.728,"eval_steps_per_second": 0.375,"step": 3},{"epoch": 4.0,"eval_loss": 0.8745010495185852,"eval_runtime": 2.6731,"eval_samples_per_second": 18.705,"eval_steps_per_second": 0.374,"step": 4},{"epoch": 5.0,"grad_norm": 18.406465212856943,"learning_rate": 5.8682408883346535e-06,"loss": 1.0879,"step": 5},{"epoch": 5.0,"eval_loss": 0.7450248599052429,"eval_runtime": 2.6675,"eval_samples_per_second": 18.744,"eval_steps_per_second": 0.375,"step": 5},{"epoch": 6.0,"eval_loss": 0.6025453209877014,"eval_runtime": 2.6697,"eval_samples_per_second": 18.729,"eval_steps_per_second": 0.375,"step": 6},{"epoch": 7.0,"eval_loss": 0.5167475938796997,"eval_runtime": 2.6908,"eval_samples_per_second": 18.582,"eval_steps_per_second": 0.372,"step": 7},{"epoch": 8.0,"eval_loss": 0.45393621921539307,"eval_runtime": 2.6892,"eval_samples_per_second": 18.593,"eval_steps_per_second": 0.372,"step": 8},{"epoch": 9.0,"eval_loss": 0.4190720021724701,"eval_runtime": 2.6866,"eval_samples_per_second": 18.611,"eval_steps_per_second": 0.372,"step": 9},{"epoch": 10.0,"grad_norm": 2.9824311781074426,"learning_rate": 0.0,"loss": 0.547,"step": 10},{"epoch": 10.0,"eval_loss": 0.408511757850647,"eval_runtime": 2.6822,"eval_samples_per_second": 18.641,"eval_steps_per_second": 0.373,"step": 10},{"epoch": 10.0,"step": 10,"total_flos": 8375186227200.0,"train_loss": 0.8196125388145447,"train_runtime": 303.2537,"train_samples_per_second": 1.649,"train_steps_per_second": 0.033}],"logging_steps": 5,
README.md+12-16
all_results.json+4-9
train_results.json+4-4
trainer_state.json+51-43