Text Generation
Transformers
Safetensors
English
gemma
code
reasoning
codegemma
safe-tensors
distillation
synthetic-dataset
text-generation-inference
Instructions to use WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled") model = AutoModelForCausalLM.from_pretrained("WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled
- SGLang
How to use WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled 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 "WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled" \ --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": "WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled", "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 "WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled" \ --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": "WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled with Docker Model Runner:
docker model run hf.co/WithinUsAI/Gemini3.5-Code.Reasoner-2b-Distilled
Delete adapter_config.json
Browse files- adapter_config.json +0 -45
adapter_config.json
DELETED
|
@@ -1,45 +0,0 @@
|
|
| 1 |
-
{
|
| 2 |
-
"alora_invocation_tokens": null,
|
| 3 |
-
"alpha_pattern": {},
|
| 4 |
-
"arrow_config": null,
|
| 5 |
-
"auto_mapping": null,
|
| 6 |
-
"base_model_name_or_path": "11-47/Gemini3.5-Code.Reasoner-2b",
|
| 7 |
-
"bias": "none",
|
| 8 |
-
"corda_config": null,
|
| 9 |
-
"ensure_weight_tying": false,
|
| 10 |
-
"eva_config": null,
|
| 11 |
-
"exclude_modules": null,
|
| 12 |
-
"fan_in_fan_out": false,
|
| 13 |
-
"inference_mode": true,
|
| 14 |
-
"init_lora_weights": true,
|
| 15 |
-
"layer_replication": null,
|
| 16 |
-
"layers_pattern": null,
|
| 17 |
-
"layers_to_transform": null,
|
| 18 |
-
"loftq_config": {},
|
| 19 |
-
"lora_alpha": 8,
|
| 20 |
-
"lora_bias": false,
|
| 21 |
-
"lora_dropout": 0.0,
|
| 22 |
-
"lora_ga_config": null,
|
| 23 |
-
"megatron_config": null,
|
| 24 |
-
"megatron_core": "megatron.core",
|
| 25 |
-
"modules_to_save": null,
|
| 26 |
-
"peft_type": "LORA",
|
| 27 |
-
"peft_version": "0.19.1",
|
| 28 |
-
"qalora_group_size": 16,
|
| 29 |
-
"r": 16,
|
| 30 |
-
"rank_pattern": {},
|
| 31 |
-
"revision": null,
|
| 32 |
-
"target_modules": [
|
| 33 |
-
"v_proj",
|
| 34 |
-
"gate_proj",
|
| 35 |
-
"q_proj",
|
| 36 |
-
"up_proj"
|
| 37 |
-
],
|
| 38 |
-
"target_parameters": null,
|
| 39 |
-
"task_type": "CAUSAL_LM",
|
| 40 |
-
"trainable_token_indices": null,
|
| 41 |
-
"use_bdlora": null,
|
| 42 |
-
"use_dora": false,
|
| 43 |
-
"use_qalora": false,
|
| 44 |
-
"use_rslora": false
|
| 45 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|