Text Generation
Transformers
Safetensors
qwen3
conversational
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use jonlecumberri/MNLP_M2_mcqa_model_first with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jonlecumberri/MNLP_M2_mcqa_model_first with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jonlecumberri/MNLP_M2_mcqa_model_first", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jonlecumberri/MNLP_M2_mcqa_model_first") model = AutoModelForCausalLM.from_pretrained("jonlecumberri/MNLP_M2_mcqa_model_first", device_map="auto") 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 jonlecumberri/MNLP_M2_mcqa_model_first with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jonlecumberri/MNLP_M2_mcqa_model_first" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jonlecumberri/MNLP_M2_mcqa_model_first", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jonlecumberri/MNLP_M2_mcqa_model_first
- SGLang
How to use jonlecumberri/MNLP_M2_mcqa_model_first 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 "jonlecumberri/MNLP_M2_mcqa_model_first" \ --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": "jonlecumberri/MNLP_M2_mcqa_model_first", "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 "jonlecumberri/MNLP_M2_mcqa_model_first" \ --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": "jonlecumberri/MNLP_M2_mcqa_model_first", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jonlecumberri/MNLP_M2_mcqa_model_first with Docker Model Runner:
docker model run hf.co/jonlecumberri/MNLP_M2_mcqa_model_first
Upload model
Browse files- adapter_config.json +3 -3
- adapter_model.safetensors +1 -1
adapter_config.json
CHANGED
|
@@ -24,12 +24,12 @@
|
|
| 24 |
"rank_pattern": {},
|
| 25 |
"revision": null,
|
| 26 |
"target_modules": [
|
| 27 |
-
"
|
| 28 |
"o_proj",
|
| 29 |
-
"gate_proj",
|
| 30 |
"k_proj",
|
|
|
|
|
|
|
| 31 |
"v_proj",
|
| 32 |
-
"q_proj",
|
| 33 |
"up_proj"
|
| 34 |
],
|
| 35 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 24 |
"rank_pattern": {},
|
| 25 |
"revision": null,
|
| 26 |
"target_modules": [
|
| 27 |
+
"q_proj",
|
| 28 |
"o_proj",
|
|
|
|
| 29 |
"k_proj",
|
| 30 |
+
"down_proj",
|
| 31 |
+
"gate_proj",
|
| 32 |
"v_proj",
|
|
|
|
| 33 |
"up_proj"
|
| 34 |
],
|
| 35 |
"task_type": "CAUSAL_LM",
|
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:161bee6230db038570859011aa3c072d3101b0454e1ed7e66ff5ef902780859a
|
| 3 |
size 20236472
|