Instructions to use RikoteMaster/open_math_model_mcqa_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RikoteMaster/open_math_model_mcqa_lora with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RikoteMaster/open_math_model_mcqa_lora") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RikoteMaster/open_math_model_mcqa_lora") model = AutoModelForCausalLM.from_pretrained("RikoteMaster/open_math_model_mcqa_lora") 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 Settings
- vLLM
How to use RikoteMaster/open_math_model_mcqa_lora with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RikoteMaster/open_math_model_mcqa_lora" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RikoteMaster/open_math_model_mcqa_lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RikoteMaster/open_math_model_mcqa_lora
- SGLang
How to use RikoteMaster/open_math_model_mcqa_lora 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 "RikoteMaster/open_math_model_mcqa_lora" \ --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": "RikoteMaster/open_math_model_mcqa_lora", "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 "RikoteMaster/open_math_model_mcqa_lora" \ --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": "RikoteMaster/open_math_model_mcqa_lora", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RikoteMaster/open_math_model_mcqa_lora with Docker Model Runner:
docker model run hf.co/RikoteMaster/open_math_model_mcqa_lora
Upload model
Browse files- adapter_config.json +4 -4
- adapter_model.safetensors +1 -1
adapter_config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
| 3 |
"auto_mapping": null,
|
| 4 |
-
"base_model_name_or_path": "
|
| 5 |
"bias": "none",
|
| 6 |
"corda_config": null,
|
| 7 |
"eva_config": null,
|
|
@@ -25,12 +25,12 @@
|
|
| 25 |
"revision": null,
|
| 26 |
"target_modules": [
|
| 27 |
"down_proj",
|
| 28 |
-
"k_proj",
|
| 29 |
"v_proj",
|
| 30 |
-
"
|
| 31 |
"q_proj",
|
|
|
|
| 32 |
"up_proj",
|
| 33 |
-
"
|
| 34 |
],
|
| 35 |
"task_type": "CAUSAL_LM",
|
| 36 |
"trainable_token_indices": null,
|
|
|
|
| 1 |
{
|
| 2 |
"alpha_pattern": {},
|
| 3 |
"auto_mapping": null,
|
| 4 |
+
"base_model_name_or_path": "Qwen/Qwen3-0.6B",
|
| 5 |
"bias": "none",
|
| 6 |
"corda_config": null,
|
| 7 |
"eva_config": null,
|
|
|
|
| 25 |
"revision": null,
|
| 26 |
"target_modules": [
|
| 27 |
"down_proj",
|
|
|
|
| 28 |
"v_proj",
|
| 29 |
+
"o_proj",
|
| 30 |
"q_proj",
|
| 31 |
+
"gate_proj",
|
| 32 |
"up_proj",
|
| 33 |
+
"k_proj"
|
| 34 |
],
|
| 35 |
"task_type": "CAUSAL_LM",
|
| 36 |
"trainable_token_indices": null,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 20236472
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aba059c2e07fd81a56006d7e85c3c837077bffdfb7f7d1ad6713cbe6959df643
|
| 3 |
size 20236472
|