Instructions to use smiled0g/preflop with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use smiled0g/preflop with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="smiled0g/preflop")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("smiled0g/preflop") model = AutoModelForSequenceClassification.from_pretrained("smiled0g/preflop", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from smiled0g/preflop: direct link, hf CLI and curl.
- Browser
- Download file 939 Bytes
-
https://huggingface.co/smiled0g/preflop/resolve/main/config.json
- Command line
-
hf download hf://smiled0g/preflop/config.json
-
curl -L -o config.json https://huggingface.co/smiled0g/preflop/resolve/main/config.json
939 Bytes
| { | |
| "architectures": [ | |
| "LlamaForSequenceClassification" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 49, | |
| "eos_token_id": 50, | |
| "head_dim": 64, | |
| "hidden_act": "silu", | |
| "hidden_size": 1024, | |
| "id2label": { | |
| "0": "LABEL_0", | |
| "1": "LABEL_1", | |
| "2": "LABEL_2", | |
| "3": "LABEL_3", | |
| "4": "LABEL_4" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "label2id": { | |
| "LABEL_0": 0, | |
| "LABEL_1": 1, | |
| "LABEL_2": 2, | |
| "LABEL_3": 3, | |
| "LABEL_4": 4 | |
| }, | |
| "max_position_embeddings": 256, | |
| "mlp_bias": false, | |
| "model_type": "llama", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 16, | |
| "num_key_value_heads": 16, | |
| "pad_token_id": 52, | |
| "pretraining_tp": 1, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": null, | |
| "rope_theta": 10000.0, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.45.2", | |
| "use_cache": true, | |
| "vocab_size": 53 | |
| } | |