Instructions to use craa/exceptions with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use craa/exceptions with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="craa/exceptions")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("craa/exceptions", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use craa/exceptions with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "craa/exceptions" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "craa/exceptions", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/craa/exceptions
- SGLang
How to use craa/exceptions 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 "craa/exceptions" \ --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": "craa/exceptions", "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 "craa/exceptions" \ --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": "craa/exceptions", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use craa/exceptions with Docker Model Runner:
docker model run hf.co/craa/exceptions
|
Download exp3/high_2000_8397/README.md from craa/exceptions: direct link, hf CLI and curl.
- Browser
- Download file 9.88 kB
-
https://huggingface.co/craa/exceptions/resolve/main/exp3/high_2000_8397/README.md
- Command line
-
hf download hf://craa/exceptions/exp3/high_2000_8397/README.md
-
curl -L -o README.md https://huggingface.co/craa/exceptions/resolve/main/exp3/high_2000_8397/README.md
9.88 kB
metadata
library_name: transformers
tags:
- generated_from_trainer
datasets:
- craa/100M
metrics:
- accuracy
model-index:
- name: high_2000_8397
results:
- task:
name: Causal Language Modeling
type: text-generation
dataset:
name: craa/100M high_2000
type: craa/100M
args: high_2000
metrics:
- name: Accuracy
type: accuracy
value: 0.3978143729359814
high_2000_8397
This model is a fine-tuned version of on the craa/100M high_2000 dataset. It achieves the following results on the evaluation set:
- Loss: 3.2742
- Accuracy: 0.3978
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.0006
- train_batch_size: 16
- eval_batch_size: 16
- seed: 8397
- gradient_accumulation_steps: 5
- total_train_batch_size: 80
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.98) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 100
- num_epochs: 40.0
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Accuracy | Validation Loss |
|---|---|---|---|---|
| 4.569 | 0.2692 | 1000 | 0.2684 | 4.5042 |
| 4.0844 | 0.5383 | 2000 | 0.3174 | 4.0223 |
| 3.8998 | 0.8075 | 3000 | 0.3341 | 3.8360 |
| 3.7377 | 1.0764 | 4000 | 0.3442 | 3.7326 |
| 3.6862 | 1.3456 | 5000 | 0.3509 | 3.6650 |
| 3.6327 | 1.6148 | 6000 | 0.3565 | 3.6097 |
| 3.6095 | 1.8839 | 7000 | 0.3600 | 3.5664 |
| 3.4977 | 2.1529 | 8000 | 0.3637 | 3.5374 |
| 3.5021 | 2.4220 | 9000 | 0.3669 | 3.5090 |
| 3.4823 | 2.6912 | 10000 | 0.3693 | 3.4824 |
| 3.4569 | 2.9604 | 11000 | 0.3718 | 3.4617 |
| 3.3867 | 3.2293 | 12000 | 0.3730 | 3.4523 |
| 3.4035 | 3.4985 | 13000 | 0.3748 | 3.4350 |
| 3.4025 | 3.7677 | 14000 | 0.3761 | 3.4210 |
| 3.3059 | 4.0366 | 15000 | 0.3776 | 3.4114 |
| 3.3324 | 4.3058 | 16000 | 0.3785 | 3.4045 |
| 3.3339 | 4.5749 | 17000 | 0.3798 | 3.3931 |
| 3.3349 | 4.8441 | 18000 | 0.3812 | 3.3794 |
| 3.2506 | 5.1130 | 19000 | 0.3816 | 3.3799 |
| 3.2804 | 5.3822 | 20000 | 0.3821 | 3.3721 |
| 3.278 | 5.6514 | 21000 | 0.3831 | 3.3651 |
| 3.2908 | 5.9205 | 22000 | 0.3842 | 3.3544 |
| 3.2329 | 6.1895 | 23000 | 0.3843 | 3.3589 |
| 3.244 | 6.4587 | 24000 | 0.3850 | 3.3509 |
| 3.2578 | 6.7278 | 25000 | 0.3857 | 3.3450 |
| 3.2524 | 6.9970 | 26000 | 0.3864 | 3.3362 |
| 3.2003 | 7.2659 | 27000 | 0.3861 | 3.3436 |
| 3.2254 | 7.5351 | 28000 | 0.3869 | 3.3337 |
| 3.233 | 7.8043 | 29000 | 0.3878 | 3.3260 |
| 3.1498 | 8.0732 | 30000 | 0.3875 | 3.3361 |
| 3.1748 | 8.3424 | 31000 | 0.3880 | 3.3317 |
| 3.198 | 8.6115 | 32000 | 0.3888 | 3.3221 |
| 3.1958 | 8.8807 | 33000 | 0.3893 | 3.3149 |
| 3.1271 | 9.1497 | 34000 | 0.3891 | 3.3242 |
| 3.1447 | 9.4188 | 35000 | 0.3896 | 3.3193 |
| 3.1872 | 9.6880 | 36000 | 0.3899 | 3.3129 |
| 3.1771 | 9.9571 | 37000 | 0.3905 | 3.3063 |
| 3.1086 | 10.2261 | 38000 | 0.3897 | 3.3208 |
| 3.139 | 10.4953 | 39000 | 0.3904 | 3.3111 |
| 3.1597 | 10.7644 | 40000 | 0.3911 | 3.3058 |
| 3.0624 | 11.0334 | 41000 | 0.3911 | 3.3113 |
| 3.113 | 11.3025 | 42000 | 0.3912 | 3.3102 |
| 3.1245 | 11.5717 | 43000 | 0.3916 | 3.3033 |
| 3.143 | 11.8409 | 44000 | 0.3923 | 3.2964 |
| 3.0648 | 12.1098 | 45000 | 0.3917 | 3.3079 |
| 3.0998 | 12.3790 | 46000 | 0.3921 | 3.3011 |
| 3.1062 | 12.6481 | 47000 | 0.3925 | 3.2975 |
| 3.1273 | 12.9173 | 48000 | 0.3930 | 3.2909 |
| 3.0699 | 13.1863 | 49000 | 0.3926 | 3.3036 |
| 3.0718 | 13.4554 | 50000 | 0.3926 | 3.3007 |
| 3.0956 | 13.7246 | 51000 | 0.3933 | 3.2934 |
| 3.1265 | 13.9938 | 52000 | 0.3937 | 3.2849 |
| 3.0532 | 14.2627 | 53000 | 0.3930 | 3.3003 |
| 3.0728 | 14.5319 | 54000 | 0.3935 | 3.2948 |
| 3.092 | 14.8010 | 55000 | 0.3937 | 3.2903 |
| 3.0072 | 15.0700 | 56000 | 0.3936 | 3.3011 |
| 3.05 | 15.3391 | 57000 | 0.3940 | 3.2935 |
| 3.0773 | 15.6083 | 58000 | 0.3940 | 3.2899 |
| 3.0813 | 15.8775 | 59000 | 0.3942 | 3.2847 |
| 3.01 | 16.1464 | 60000 | 0.3937 | 3.2962 |
| 3.0502 | 16.4156 | 61000 | 0.3945 | 3.2919 |
| 3.0535 | 16.6848 | 62000 | 0.3946 | 3.2841 |
| 3.0682 | 16.9539 | 63000 | 0.3952 | 3.2775 |
| 3.015 | 17.2229 | 64000 | 0.3941 | 3.2983 |
| 3.0393 | 17.4920 | 65000 | 0.3944 | 3.2932 |
| 3.0468 | 17.7612 | 66000 | 0.3950 | 3.2837 |
| 2.9703 | 18.0301 | 67000 | 0.3951 | 3.2897 |
| 3.0132 | 18.2993 | 68000 | 0.3950 | 3.2903 |
| 3.0333 | 18.5685 | 69000 | 0.3953 | 3.2874 |
| 3.0468 | 18.8376 | 70000 | 0.3952 | 3.2808 |
| 2.9668 | 19.1066 | 71000 | 0.3948 | 3.2961 |
| 3.0052 | 19.3758 | 72000 | 0.3954 | 3.2888 |
| 3.03 | 19.6449 | 73000 | 0.3955 | 3.2810 |
| 3.0357 | 19.9141 | 74000 | 0.3962 | 3.2748 |
| 2.9628 | 20.1830 | 75000 | 0.3954 | 3.2913 |
| 3.0068 | 20.4522 | 76000 | 0.3959 | 3.2849 |
| 3.0089 | 20.7214 | 77000 | 0.3962 | 3.2795 |
| 3.0351 | 20.9905 | 78000 | 0.3964 | 3.2759 |
| 2.9646 | 21.2595 | 79000 | 0.3957 | 3.2918 |
| 2.9889 | 21.5286 | 80000 | 0.3961 | 3.2851 |
| 2.9748 | 21.7978 | 81000 | 3.2892 | 0.3958 |
| 2.9453 | 22.0670 | 82000 | 3.2952 | 0.3955 |
| 2.9769 | 22.3362 | 83000 | 3.2892 | 0.3961 |
| 2.9852 | 22.6054 | 84000 | 3.2858 | 0.3962 |
| 2.9832 | 22.8745 | 85000 | 3.2803 | 0.3964 |
| 2.9363 | 23.1435 | 86000 | 3.2909 | 0.3962 |
| 2.9663 | 23.4126 | 87000 | 3.2865 | 0.3964 |
| 2.9933 | 23.6818 | 88000 | 3.2831 | 0.3963 |
| 2.9898 | 23.9510 | 89000 | 3.2766 | 0.3971 |
| 2.9358 | 24.2199 | 90000 | 3.2868 | 0.3965 |
| 2.9564 | 24.4891 | 91000 | 3.2842 | 0.3967 |
| 2.985 | 24.7582 | 92000 | 3.2784 | 0.3971 |
| 2.9033 | 25.0272 | 93000 | 3.2875 | 0.3964 |
| 2.9328 | 25.2964 | 94000 | 3.2913 | 0.3965 |
| 2.9515 | 25.5655 | 95000 | 3.2797 | 0.3970 |
| 2.9658 | 25.8347 | 96000 | 3.2767 | 0.3974 |
| 2.9157 | 26.1036 | 97000 | 3.2880 | 0.3970 |
| 2.9406 | 26.3728 | 98000 | 3.2849 | 0.3971 |
| 2.9521 | 26.6420 | 99000 | 3.2821 | 0.3971 |
| 2.9665 | 26.9111 | 100000 | 3.2742 | 0.3978 |
| 2.9038 | 27.1801 | 101000 | 3.2879 | 0.3972 |
| 2.9357 | 27.4492 | 102000 | 3.2839 | 0.3973 |
| 2.9344 | 27.7184 | 103000 | 3.2815 | 0.3977 |
| 2.9578 | 27.9876 | 104000 | 3.2773 | 0.3976 |
| 2.9156 | 28.2565 | 105000 | 3.2896 | 0.3972 |
| 2.9258 | 28.5257 | 106000 | 3.2823 | 0.3975 |
| 2.9385 | 28.7948 | 107000 | 3.2764 | 0.3978 |
| 2.8663 | 29.0638 | 108000 | 3.2878 | 0.3977 |
| 2.9124 | 29.3330 | 109000 | 3.2855 | 0.3978 |
| 2.9185 | 29.6021 | 110000 | 3.2805 | 0.3979 |
| 2.9229 | 29.8713 | 111000 | 3.2759 | 0.3982 |
| 2.8683 | 30.1402 | 112000 | 3.2896 | 0.3975 |
| 2.89 | 30.4094 | 113000 | 3.2867 | 0.3974 |
| 2.9145 | 30.6786 | 114000 | 3.2825 | 0.3978 |
| 2.9325 | 30.9477 | 115000 | 3.2770 | 0.3983 |
| 2.8755 | 31.2167 | 116000 | 3.2870 | 0.3978 |
| 2.8941 | 31.4858 | 117000 | 3.2824 | 0.3980 |
| 2.9035 | 31.7550 | 118000 | 3.2785 | 0.3985 |
| 2.8517 | 32.0240 | 119000 | 3.2862 | 0.3978 |
| 2.8663 | 32.2931 | 120000 | 3.2858 | 0.3982 |
Framework versions
- Transformers 4.55.2
- Pytorch 2.8.0+cu128
- Datasets 4.0.0
- Tokenizers 0.21.4