Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
conversational
text-generation-inference
Instructions to use cam-1000/MNLP_M3_rag_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cam-1000/MNLP_M3_rag_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cam-1000/MNLP_M3_rag_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cam-1000/MNLP_M3_rag_model") model = AutoModelForCausalLM.from_pretrained("cam-1000/MNLP_M3_rag_model") 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 cam-1000/MNLP_M3_rag_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cam-1000/MNLP_M3_rag_model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cam-1000/MNLP_M3_rag_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cam-1000/MNLP_M3_rag_model
- SGLang
How to use cam-1000/MNLP_M3_rag_model 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 "cam-1000/MNLP_M3_rag_model" \ --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": "cam-1000/MNLP_M3_rag_model", "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 "cam-1000/MNLP_M3_rag_model" \ --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": "cam-1000/MNLP_M3_rag_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cam-1000/MNLP_M3_rag_model with Docker Model Runner:
docker model run hf.co/cam-1000/MNLP_M3_rag_model
End of training
Browse files- README.md +6 -7
- config.json +1 -1
- model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
-
|
| 4 |
-
base_model: Qwen/Qwen3-0.6B-Base
|
| 5 |
tags:
|
| 6 |
- generated_from_trainer
|
| 7 |
model-index:
|
|
@@ -14,9 +13,9 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 14 |
|
| 15 |
# MNLP_M3_rag_model
|
| 16 |
|
| 17 |
-
This model is a fine-tuned version of [
|
| 18 |
It achieves the following results on the evaluation set:
|
| 19 |
-
- Loss: 0.
|
| 20 |
|
| 21 |
## Model description
|
| 22 |
|
|
@@ -50,9 +49,9 @@ The following hyperparameters were used during training:
|
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 52 |
|:-------------:|:------:|:----:|:---------------:|
|
| 53 |
-
| 0.
|
| 54 |
-
| 0.
|
| 55 |
-
| 0.
|
| 56 |
|
| 57 |
|
| 58 |
### Framework versions
|
|
|
|
| 1 |
---
|
| 2 |
library_name: transformers
|
| 3 |
+
base_model: cam-1000/MNLP_M3_mcqa_model
|
|
|
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
model-index:
|
|
|
|
| 13 |
|
| 14 |
# MNLP_M3_rag_model
|
| 15 |
|
| 16 |
+
This model is a fine-tuned version of [cam-1000/MNLP_M3_mcqa_model](https://huggingface.co/cam-1000/MNLP_M3_mcqa_model) on an unknown dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
+
- Loss: 0.8564
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
|
|
|
| 49 |
|
| 50 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 51 |
|:-------------:|:------:|:----:|:---------------:|
|
| 52 |
+
| 0.8275 | 0.0228 | 100 | 0.8105 |
|
| 53 |
+
| 0.7663 | 0.0456 | 200 | 0.8251 |
|
| 54 |
+
| 0.5896 | 0.0683 | 300 | 0.8564 |
|
| 55 |
|
| 56 |
|
| 57 |
### Framework versions
|
config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
"Qwen3ForCausalLM"
|
| 4 |
],
|
| 5 |
"attention_bias": false,
|
| 6 |
-
"attention_dropout": 0.
|
| 7 |
"bos_token_id": 151643,
|
| 8 |
"eos_token_id": 151643,
|
| 9 |
"head_dim": 128,
|
|
|
|
| 3 |
"Qwen3ForCausalLM"
|
| 4 |
],
|
| 5 |
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.1,
|
| 7 |
"bos_token_id": 151643,
|
| 8 |
"eos_token_id": 151643,
|
| 9 |
"head_dim": 128,
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1192135096
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c3fef9685203b9f660eacccb274de06644cda9c54f59e6a08b88dce69e363af
|
| 3 |
size 1192135096
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5713
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62eb3b5582a5d668757dda6894f7cdaaa74fa00eb64371185180a22602e99425
|
| 3 |
size 5713
|