Text Generation
Transformers
Safetensors
Russian
English
deepseek_v3
gigachat3
testing
tiny
conversational
text-generation-inference
Instructions to use optimum-intel-internal-testing/tiny-random-gigachat3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use optimum-intel-internal-testing/tiny-random-gigachat3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="optimum-intel-internal-testing/tiny-random-gigachat3") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("optimum-intel-internal-testing/tiny-random-gigachat3") model = AutoModelForCausalLM.from_pretrained("optimum-intel-internal-testing/tiny-random-gigachat3") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use optimum-intel-internal-testing/tiny-random-gigachat3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "optimum-intel-internal-testing/tiny-random-gigachat3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "optimum-intel-internal-testing/tiny-random-gigachat3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/optimum-intel-internal-testing/tiny-random-gigachat3
- SGLang
How to use optimum-intel-internal-testing/tiny-random-gigachat3 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 "optimum-intel-internal-testing/tiny-random-gigachat3" \ --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": "optimum-intel-internal-testing/tiny-random-gigachat3", "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 "optimum-intel-internal-testing/tiny-random-gigachat3" \ --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": "optimum-intel-internal-testing/tiny-random-gigachat3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use optimum-intel-internal-testing/tiny-random-gigachat3 with Docker Model Runner:
docker model run hf.co/optimum-intel-internal-testing/tiny-random-gigachat3
Upload folder using huggingface_hub
Browse files- config.json +13 -14
- generation_config.json +1 -1
- model.safetensors +2 -2
- tokenizer.json +2 -2
config.json
CHANGED
|
@@ -9,30 +9,30 @@
|
|
| 9 |
"eos_token_id": 2,
|
| 10 |
"ep_size": 1,
|
| 11 |
"first_k_dense_replace": 1,
|
| 12 |
-
"head_dim":
|
| 13 |
"hidden_act": "silu",
|
| 14 |
-
"hidden_size":
|
| 15 |
"initializer_range": 0.006,
|
| 16 |
-
"intermediate_size":
|
| 17 |
-
"kv_lora_rank":
|
| 18 |
"max_position_embeddings": 262144,
|
| 19 |
"model_type": "deepseek_v3",
|
| 20 |
-
"moe_intermediate_size":
|
| 21 |
"moe_layer_freq": 1,
|
| 22 |
"n_group": 1,
|
| 23 |
"n_routed_experts": 4,
|
| 24 |
"n_shared_experts": 1,
|
| 25 |
"norm_topk_prob": true,
|
| 26 |
-
"num_attention_heads":
|
| 27 |
"num_experts_per_tok": 2,
|
| 28 |
"num_hidden_layers": 2,
|
| 29 |
-
"num_key_value_heads":
|
| 30 |
"num_nextn_predict_layers": 1,
|
| 31 |
"pretraining_tp": 1,
|
| 32 |
"q_lora_rank": null,
|
| 33 |
-
"qk_head_dim":
|
| 34 |
-
"qk_nope_head_dim":
|
| 35 |
-
"qk_rope_head_dim":
|
| 36 |
"rms_norm_eps": 1e-06,
|
| 37 |
"rope_interleave": true,
|
| 38 |
"rope_scaling": {
|
|
@@ -51,9 +51,8 @@
|
|
| 51 |
"tie_word_embeddings": false,
|
| 52 |
"topk_group": 1,
|
| 53 |
"topk_method": "noaux_tc",
|
| 54 |
-
"
|
| 55 |
-
"transformers_version": "4.53.3",
|
| 56 |
"use_cache": true,
|
| 57 |
-
"v_head_dim":
|
| 58 |
-
"vocab_size":
|
| 59 |
}
|
|
|
|
| 9 |
"eos_token_id": 2,
|
| 10 |
"ep_size": 1,
|
| 11 |
"first_k_dense_replace": 1,
|
| 12 |
+
"head_dim": 2,
|
| 13 |
"hidden_act": "silu",
|
| 14 |
+
"hidden_size": 32,
|
| 15 |
"initializer_range": 0.006,
|
| 16 |
+
"intermediate_size": 64,
|
| 17 |
+
"kv_lora_rank": 8,
|
| 18 |
"max_position_embeddings": 262144,
|
| 19 |
"model_type": "deepseek_v3",
|
| 20 |
+
"moe_intermediate_size": 32,
|
| 21 |
"moe_layer_freq": 1,
|
| 22 |
"n_group": 1,
|
| 23 |
"n_routed_experts": 4,
|
| 24 |
"n_shared_experts": 1,
|
| 25 |
"norm_topk_prob": true,
|
| 26 |
+
"num_attention_heads": 2,
|
| 27 |
"num_experts_per_tok": 2,
|
| 28 |
"num_hidden_layers": 2,
|
| 29 |
+
"num_key_value_heads": 2,
|
| 30 |
"num_nextn_predict_layers": 1,
|
| 31 |
"pretraining_tp": 1,
|
| 32 |
"q_lora_rank": null,
|
| 33 |
+
"qk_head_dim": 6,
|
| 34 |
+
"qk_nope_head_dim": 4,
|
| 35 |
+
"qk_rope_head_dim": 2,
|
| 36 |
"rms_norm_eps": 1e-06,
|
| 37 |
"rope_interleave": true,
|
| 38 |
"rope_scaling": {
|
|
|
|
| 51 |
"tie_word_embeddings": false,
|
| 52 |
"topk_group": 1,
|
| 53 |
"topk_method": "noaux_tc",
|
| 54 |
+
"transformers_version": "4.57.6",
|
|
|
|
| 55 |
"use_cache": true,
|
| 56 |
+
"v_head_dim": 4,
|
| 57 |
+
"vocab_size": 32000
|
| 58 |
}
|
generation_config.json
CHANGED
|
@@ -2,5 +2,5 @@
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 1,
|
| 4 |
"eos_token_id": 2,
|
| 5 |
-
"transformers_version": "4.
|
| 6 |
}
|
|
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 1,
|
| 4 |
"eos_token_id": 2,
|
| 5 |
+
"transformers_version": "4.57.6"
|
| 6 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4849d415de47276e86a8a8e094fd22d511a27fe17a4d0f927620df3629fbf63d
|
| 3 |
+
size 4148048
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c28a86aef25706f0664c264e436b8ff99d29187ea70ebb291097307400c3cb5
|
| 3 |
+
size 673497
|