Instructions to use CCBD-Interns/multiligual-arithmetic-sample2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CCBD-Interns/multiligual-arithmetic-sample2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CCBD-Interns/multiligual-arithmetic-sample2")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CCBD-Interns/multiligual-arithmetic-sample2") model = AutoModelForCausalLM.from_pretrained("CCBD-Interns/multiligual-arithmetic-sample2") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CCBD-Interns/multiligual-arithmetic-sample2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CCBD-Interns/multiligual-arithmetic-sample2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CCBD-Interns/multiligual-arithmetic-sample2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CCBD-Interns/multiligual-arithmetic-sample2
- SGLang
How to use CCBD-Interns/multiligual-arithmetic-sample2 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 "CCBD-Interns/multiligual-arithmetic-sample2" \ --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": "CCBD-Interns/multiligual-arithmetic-sample2", "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 "CCBD-Interns/multiligual-arithmetic-sample2" \ --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": "CCBD-Interns/multiligual-arithmetic-sample2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CCBD-Interns/multiligual-arithmetic-sample2 with Docker Model Runner:
docker model run hf.co/CCBD-Interns/multiligual-arithmetic-sample2
Training in progress, epoch 1
Browse files- README.md +52 -0
- config.json +34 -0
- generation_config.json +12 -0
- model.safetensors +3 -0
- tokenizer.json +134 -0
- tokenizer_config.json +11 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
tags:
|
| 4 |
+
- generated_from_trainer
|
| 5 |
+
model-index:
|
| 6 |
+
- name: multiligual-arithmetic-d32-l3-h8-100
|
| 7 |
+
results: []
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 11 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 12 |
+
|
| 13 |
+
# multiligual-arithmetic-d32-l3-h8-100
|
| 14 |
+
|
| 15 |
+
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 16 |
+
|
| 17 |
+
## Model description
|
| 18 |
+
|
| 19 |
+
More information needed
|
| 20 |
+
|
| 21 |
+
## Intended uses & limitations
|
| 22 |
+
|
| 23 |
+
More information needed
|
| 24 |
+
|
| 25 |
+
## Training and evaluation data
|
| 26 |
+
|
| 27 |
+
More information needed
|
| 28 |
+
|
| 29 |
+
## Training procedure
|
| 30 |
+
|
| 31 |
+
### Training hyperparameters
|
| 32 |
+
|
| 33 |
+
The following hyperparameters were used during training:
|
| 34 |
+
- learning_rate: 0.001
|
| 35 |
+
- train_batch_size: 128
|
| 36 |
+
- eval_batch_size: 8
|
| 37 |
+
- seed: 42
|
| 38 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 39 |
+
- lr_scheduler_type: cosine
|
| 40 |
+
- lr_scheduler_warmup_steps: 0.05
|
| 41 |
+
- num_epochs: 100
|
| 42 |
+
|
| 43 |
+
### Training results
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
### Framework versions
|
| 48 |
+
|
| 49 |
+
- Transformers 5.12.1
|
| 50 |
+
- Pytorch 2.11.0+cu128
|
| 51 |
+
- Datasets 5.0.0
|
| 52 |
+
- Tokenizers 0.22.2
|
config.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"activation_function": "gelu_new",
|
| 3 |
+
"add_cross_attention": false,
|
| 4 |
+
"architectures": [
|
| 5 |
+
"GPT2LMHeadModel"
|
| 6 |
+
],
|
| 7 |
+
"attn_pdrop": 0.0,
|
| 8 |
+
"bos_token_id": 1,
|
| 9 |
+
"dtype": "float32",
|
| 10 |
+
"embd_pdrop": 0.0,
|
| 11 |
+
"eos_token_id": 2,
|
| 12 |
+
"initializer_range": 0.02,
|
| 13 |
+
"layer_norm_epsilon": 1e-05,
|
| 14 |
+
"model_type": "gpt2",
|
| 15 |
+
"n_embd": 64,
|
| 16 |
+
"n_head": 4,
|
| 17 |
+
"n_inner": 256,
|
| 18 |
+
"n_layer": 2,
|
| 19 |
+
"n_positions": 32,
|
| 20 |
+
"pad_token_id": 0,
|
| 21 |
+
"reorder_and_upcast_attn": false,
|
| 22 |
+
"resid_pdrop": 0.0,
|
| 23 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 24 |
+
"scale_attn_weights": true,
|
| 25 |
+
"summary_activation": null,
|
| 26 |
+
"summary_first_dropout": 0.0,
|
| 27 |
+
"summary_proj_to_labels": true,
|
| 28 |
+
"summary_type": "cls_index",
|
| 29 |
+
"summary_use_proj": true,
|
| 30 |
+
"tie_word_embeddings": true,
|
| 31 |
+
"transformers_version": "5.12.1",
|
| 32 |
+
"use_cache": false,
|
| 33 |
+
"vocab_size": 40
|
| 34 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": [
|
| 5 |
+
2
|
| 6 |
+
],
|
| 7 |
+
"output_attentions": false,
|
| 8 |
+
"output_hidden_states": false,
|
| 9 |
+
"pad_token_id": 0,
|
| 10 |
+
"transformers_version": "5.12.1",
|
| 11 |
+
"use_cache": true
|
| 12 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73f68009ce01a230660c0eb77a61c05df300a928908d6ab47732294a8771ba0a
|
| 3 |
+
size 421448
|
tokenizer.json
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"truncation": null,
|
| 4 |
+
"padding": {
|
| 5 |
+
"strategy": "BatchLongest",
|
| 6 |
+
"direction": "Left",
|
| 7 |
+
"pad_to_multiple_of": null,
|
| 8 |
+
"pad_id": 0,
|
| 9 |
+
"pad_type_id": 0,
|
| 10 |
+
"pad_token": "<pad>"
|
| 11 |
+
},
|
| 12 |
+
"added_tokens": [
|
| 13 |
+
{
|
| 14 |
+
"id": 0,
|
| 15 |
+
"content": "<pad>",
|
| 16 |
+
"single_word": false,
|
| 17 |
+
"lstrip": false,
|
| 18 |
+
"rstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"special": true
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"id": 1,
|
| 24 |
+
"content": "<bos>",
|
| 25 |
+
"single_word": false,
|
| 26 |
+
"lstrip": false,
|
| 27 |
+
"rstrip": false,
|
| 28 |
+
"normalized": false,
|
| 29 |
+
"special": true
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"id": 2,
|
| 33 |
+
"content": "<eos>",
|
| 34 |
+
"single_word": false,
|
| 35 |
+
"lstrip": false,
|
| 36 |
+
"rstrip": false,
|
| 37 |
+
"normalized": false,
|
| 38 |
+
"special": true
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"id": 3,
|
| 42 |
+
"content": "<unk>",
|
| 43 |
+
"single_word": false,
|
| 44 |
+
"lstrip": false,
|
| 45 |
+
"rstrip": false,
|
| 46 |
+
"normalized": false,
|
| 47 |
+
"special": true
|
| 48 |
+
}
|
| 49 |
+
],
|
| 50 |
+
"normalizer": null,
|
| 51 |
+
"pre_tokenizer": {
|
| 52 |
+
"type": "Split",
|
| 53 |
+
"pattern": {
|
| 54 |
+
"Regex": "[\\s\\S]"
|
| 55 |
+
},
|
| 56 |
+
"behavior": "Isolated",
|
| 57 |
+
"invert": false
|
| 58 |
+
},
|
| 59 |
+
"post_processor": {
|
| 60 |
+
"type": "TemplateProcessing",
|
| 61 |
+
"single": [
|
| 62 |
+
{
|
| 63 |
+
"Sequence": {
|
| 64 |
+
"id": "A",
|
| 65 |
+
"type_id": 0
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
],
|
| 69 |
+
"pair": [
|
| 70 |
+
{
|
| 71 |
+
"Sequence": {
|
| 72 |
+
"id": "A",
|
| 73 |
+
"type_id": 0
|
| 74 |
+
}
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"Sequence": {
|
| 78 |
+
"id": "B",
|
| 79 |
+
"type_id": 1
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
],
|
| 83 |
+
"special_tokens": {}
|
| 84 |
+
},
|
| 85 |
+
"decoder": {
|
| 86 |
+
"type": "Fuse"
|
| 87 |
+
},
|
| 88 |
+
"model": {
|
| 89 |
+
"type": "WordLevel",
|
| 90 |
+
"vocab": {
|
| 91 |
+
"<pad>": 0,
|
| 92 |
+
"<bos>": 1,
|
| 93 |
+
"<eos>": 2,
|
| 94 |
+
"<unk>": 3,
|
| 95 |
+
"\n": 4,
|
| 96 |
+
"+": 5,
|
| 97 |
+
"0": 6,
|
| 98 |
+
"1": 7,
|
| 99 |
+
"2": 8,
|
| 100 |
+
"3": 9,
|
| 101 |
+
"4": 10,
|
| 102 |
+
"5": 11,
|
| 103 |
+
"6": 12,
|
| 104 |
+
"7": 13,
|
| 105 |
+
"8": 14,
|
| 106 |
+
"9": 15,
|
| 107 |
+
"=": 16,
|
| 108 |
+
"०": 17,
|
| 109 |
+
"१": 18,
|
| 110 |
+
"२": 19,
|
| 111 |
+
"३": 20,
|
| 112 |
+
"४": 21,
|
| 113 |
+
"५": 22,
|
| 114 |
+
"६": 23,
|
| 115 |
+
"७": 24,
|
| 116 |
+
"८": 25,
|
| 117 |
+
"९": 26,
|
| 118 |
+
"一": 27,
|
| 119 |
+
"七": 28,
|
| 120 |
+
"三": 29,
|
| 121 |
+
"九": 30,
|
| 122 |
+
"二": 31,
|
| 123 |
+
"五": 32,
|
| 124 |
+
"八": 33,
|
| 125 |
+
"六": 34,
|
| 126 |
+
"十": 35,
|
| 127 |
+
"千": 36,
|
| 128 |
+
"四": 37,
|
| 129 |
+
"百": 38,
|
| 130 |
+
"零": 39
|
| 131 |
+
},
|
| 132 |
+
"unk_token": "<unk>"
|
| 133 |
+
}
|
| 134 |
+
}
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"bos_token": "<bos>",
|
| 4 |
+
"eos_token": "<eos>",
|
| 5 |
+
"is_local": false,
|
| 6 |
+
"local_files_only": false,
|
| 7 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 8 |
+
"pad_token": "<pad>",
|
| 9 |
+
"tokenizer_class": "TokenizersBackend",
|
| 10 |
+
"unk_token": "<unk>"
|
| 11 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:113d4886720fd7eb44bf86758a9a63789ae1929e05e95287564fed9b016db8ec
|
| 3 |
+
size 5265
|