Run this model with HF Jobs
Run qing-yao/swapped-datives_seed-42_1e-3 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/qing-yao/swapped-datives_seed-42_1e-3. 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/qing-yao/swapped-datives_seed-42_1e-3 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/qing-yao/swapped-datives_seed-42_1e-3. 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/qing-yao/swapped-datives_seed-42_1e-3. 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 qing-yao/swapped-datives_seed-42_1e-3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use qing-yao/swapped-datives_seed-42_1e-3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="qing-yao/swapped-datives_seed-42_1e-3")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("qing-yao/swapped-datives_seed-42_1e-3") model = AutoModelForCausalLM.from_pretrained("qing-yao/swapped-datives_seed-42_1e-3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use qing-yao/swapped-datives_seed-42_1e-3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "qing-yao/swapped-datives_seed-42_1e-3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "qing-yao/swapped-datives_seed-42_1e-3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/qing-yao/swapped-datives_seed-42_1e-3
- SGLang
How to use qing-yao/swapped-datives_seed-42_1e-3 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 "qing-yao/swapped-datives_seed-42_1e-3" \ --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": "qing-yao/swapped-datives_seed-42_1e-3", "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 "qing-yao/swapped-datives_seed-42_1e-3" \ --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": "qing-yao/swapped-datives_seed-42_1e-3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use qing-yao/swapped-datives_seed-42_1e-3 with Docker Model Runner:
docker model run hf.co/qing-yao/swapped-datives_seed-42_1e-3
counterfactual_seed-42_1e-3
This model was trained from scratch on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 3.1863
- Accuracy: 0.4007
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.001
- train_batch_size: 32
- eval_batch_size: 64
- seed: 42
- gradient_accumulation_steps: 8
- total_train_batch_size: 256
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 32000
- num_epochs: 20.0
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 6.0073 | 0.9994 | 1486 | 4.4192 | 0.2920 |
| 4.3098 | 1.9992 | 2972 | 3.9141 | 0.3313 |
| 3.7057 | 2.9991 | 4458 | 3.6329 | 0.3552 |
| 3.5345 | 3.9996 | 5945 | 3.4651 | 0.3710 |
| 3.3114 | 4.9994 | 7431 | 3.3682 | 0.3802 |
| 3.2377 | 5.9992 | 8917 | 3.3098 | 0.3859 |
| 3.1306 | 6.9991 | 10403 | 3.2696 | 0.3896 |
| 3.0915 | 7.9996 | 11890 | 3.2479 | 0.3926 |
| 3.0307 | 8.9994 | 13376 | 3.2247 | 0.3945 |
| 3.0054 | 9.9992 | 14862 | 3.2130 | 0.3962 |
| 2.9679 | 10.9991 | 16348 | 3.2049 | 0.3972 |
| 2.9475 | 11.9996 | 17835 | 3.1986 | 0.3978 |
| 2.9256 | 12.9994 | 19321 | 3.1964 | 0.3988 |
| 2.9069 | 13.9992 | 20807 | 3.1900 | 0.3994 |
| 2.8976 | 14.9991 | 22293 | 3.1946 | 0.3994 |
| 2.879 | 15.9996 | 23780 | 3.1883 | 0.3999 |
| 2.8775 | 16.9994 | 25266 | 3.1918 | 0.4004 |
| 2.8601 | 17.9992 | 26752 | 3.1878 | 0.4006 |
| 2.8664 | 18.9991 | 28238 | 3.1885 | 0.4006 |
| 2.8445 | 19.9962 | 29720 | 3.1863 | 0.4007 |
Framework versions
- Transformers 4.46.2
- Pytorch 2.5.1+cu124
- Datasets 3.2.0
- Tokenizers 0.20.0
- Downloads last month
- 10