Text Generation
Transformers
Safetensors
qwen3
Generated from Trainer
sft
trl
conversational
text-generation-inference
Instructions to use cs-552-2026-flab/general_knowledge_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cs-552-2026-flab/general_knowledge_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="cs-552-2026-flab/general_knowledge_model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("cs-552-2026-flab/general_knowledge_model") model = AutoModelForCausalLM.from_pretrained("cs-552-2026-flab/general_knowledge_model", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use cs-552-2026-flab/general_knowledge_model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cs-552-2026-flab/general_knowledge_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": "cs-552-2026-flab/general_knowledge_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cs-552-2026-flab/general_knowledge_model
- SGLang
How to use cs-552-2026-flab/general_knowledge_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 "cs-552-2026-flab/general_knowledge_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": "cs-552-2026-flab/general_knowledge_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 "cs-552-2026-flab/general_knowledge_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": "cs-552-2026-flab/general_knowledge_model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use cs-552-2026-flab/general_knowledge_model with Docker Model Runner:
docker model run hf.co/cs-552-2026-flab/general_knowledge_model
Update Automated MNLP evaluation report (2026-06-08)
Browse files- EVAL_REPORT.md +38 -40
EVAL_REPORT.md
CHANGED
|
@@ -2,23 +2,23 @@
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-flab/general_knowledge_model`](https://huggingface.co/cs-552-2026-flab/general_knowledge_model)
|
| 4 |
- **Owner(s):** group **flab**
|
| 5 |
-
- **Generated at:** 2026-06-
|
| 6 |
- **Pipeline:** [mnlp-project-ci](https://github.com/eric11eca/mnlp-project-ci)
|
| 7 |
|
| 8 |
_This PR is opened automatically by the course CI. It is **non-blocking** — you do not need to merge it. The next nightly run will refresh this file._
|
| 9 |
|
| 10 |
## Evaluated checkpoint
|
| 11 |
|
| 12 |
-
- **Commit:** [`
|
| 13 |
-
- **Message:** Adaptive chat_template
|
| 14 |
-
- **Committed:** 2026-06-
|
| 15 |
|
| 16 |
## Summary
|
| 17 |
|
| 18 |
| Benchmark | Accuracy | Status |
|
| 19 |
|---|---:|---|
|
| 20 |
| Math | — | not run |
|
| 21 |
-
| Knowledge | 0.
|
| 22 |
| Multilingual | — | not run |
|
| 23 |
| Safety | — | not run |
|
| 24 |
|
|
@@ -37,41 +37,45 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 37 |
|
| 38 |
```text
|
| 39 |
<think>
|
| 40 |
-
Okay, let's
|
| 41 |
|
| 42 |
-
|
| 43 |
|
| 44 |
-
... [truncated
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
-
|
| 49 |
|
| 50 |
-
|
| 51 |
-
\text{Ground state energy} = 2 \cdot \left( \frac{1^2}{\pi^2} E + \frac{2^2}{\pi^2} E \right) = \frac{10}{\pi^2} E \approx 10E
|
| 52 |
-
$$
|
| 53 |
|
| 54 |
-
|
| 55 |
|
| 56 |
$$
|
| 57 |
-
\text{
|
| 58 |
$$
|
| 59 |
|
| 60 |
-
|
| 61 |
|
| 62 |
$$
|
| 63 |
-
\text{
|
| 64 |
$$
|
| 65 |
|
| 66 |
-
|
| 67 |
|
| 68 |
$$
|
| 69 |
-
\
|
| 70 |
$$
|
| 71 |
|
| 72 |
---
|
| 73 |
|
| 74 |
-
###
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
$$
|
| 77 |
\boxed{B}
|
|
@@ -80,40 +84,34 @@ _Prompts are intentionally omitted to avoid revealing benchmark contents. For mu
|
|
| 80 |
|
| 81 |
**Incorrect** (1 shown)
|
| 82 |
|
| 83 |
-
- **reference**: `
|
| 84 |
- **overall** (0/1 completions correct)
|
| 85 |
-
- **extracted** (✗): `
|
| 86 |
- **completion**:
|
| 87 |
|
| 88 |
```text
|
| 89 |
<think>
|
| 90 |
-
Okay, let's try to figure out this question about
|
| 91 |
-
|
| 92 |
-
First, I need to recall what moral luck is. From what I remember, moral luck is the idea that the morality of an action doesn't depend on the person's intentions or character, but rather on the circumstances of the
|
| 93 |
-
|
| 94 |
-
... [truncated 823 chars] ...
|
| 95 |
|
| 96 |
-
|
| 97 |
|
| 98 |
-
|
| 99 |
-
This is a broad and vague statement, and not specific to Nagel’s view of moral luck.
|
| 100 |
|
| 101 |
-
-
|
| 102 |
-
This is more about **determinism** or **prediction**, and not directly about moral luck.
|
| 103 |
|
| 104 |
-
|
| 105 |
-
|
| 106 |
|
| 107 |
-
|
| 108 |
-
This is a general critique, not specific to Nagel's view of moral luck.
|
| 109 |
|
| 110 |
-
|
| 111 |
-
This is the **correct** answer. Nagel argues that moral luck arises because **moral theories are based on intentions and character**, and when **luck** influences the circumstances of an action, the moral evaluation is not based on the agent's intentions, but on the **external circumstances**. Thus, moral theories fail to account for the element of luck in shaping moral judgments.
|
| 112 |
|
| 113 |
---
|
| 114 |
|
| 115 |
-
###
|
|
|
|
|
|
|
| 116 |
$$
|
| 117 |
-
\boxed{
|
| 118 |
$$
|
| 119 |
```
|
|
|
|
| 2 |
|
| 3 |
- **Model repo:** [`cs-552-2026-flab/general_knowledge_model`](https://huggingface.co/cs-552-2026-flab/general_knowledge_model)
|
| 4 |
- **Owner(s):** group **flab**
|
| 5 |
+
- **Generated at:** 2026-06-08T04:40:54+00:00 (UTC)
|
| 6 |
- **Pipeline:** [mnlp-project-ci](https://github.com/eric11eca/mnlp-project-ci)
|
| 7 |
|
| 8 |
_This PR is opened automatically by the course CI. It is **non-blocking** — you do not need to merge it. The next nightly run will refresh this file._
|
| 9 |
|
| 10 |
## Evaluated checkpoint
|
| 11 |
|
| 12 |
+
- **Commit:** [`6bc2deb`](https://huggingface.co/cs-552-2026-flab/general_knowledge_model/commit/6bc2deb745d934bd946efcd0a4abf560486a4dd8)
|
| 13 |
+
- **Message:** Adaptive chat_template (head-to-head +0.092 vs old on clean Qs)
|
| 14 |
+
- **Committed:** 2026-06-06T15:39:46+00:00
|
| 15 |
|
| 16 |
## Summary
|
| 17 |
|
| 18 |
| Benchmark | Accuracy | Status |
|
| 19 |
|---|---:|---|
|
| 20 |
| Math | — | not run |
|
| 21 |
+
| Knowledge | 0.4500 | ok |
|
| 22 |
| Multilingual | — | not run |
|
| 23 |
| Safety | — | not run |
|
| 24 |
|
|
|
|
| 37 |
|
| 38 |
```text
|
| 39 |
<think>
|
| 40 |
+
Okay, let's tackle this problem step by step. So, we have four indistinguishable electrons in a one-dimensional infinite potential well of length L. We need to find the energy levels in the ground state, first excited, and second excited states, all expressed in terms of E, where E is given as π²ħ²/(2mL²).
|
| 41 |
|
| 42 |
+
First, I remember that for a particle in a one-dimensional infinite potential well
|
| 43 |
|
| 44 |
+
... [truncated 823 chars] ...
|
| 45 |
|
| 46 |
+
st possible energy levels.
|
| 47 |
|
| 48 |
+
---
|
| 49 |
|
| 50 |
+
### Energy Levels for Four Electrons
|
|
|
|
|
|
|
| 51 |
|
| 52 |
+
- **Ground state (lowest energy)**: Two electrons occupy the lowest energy level $ n = 1 $, and two electrons occupy the next level $ n = 2 $.
|
| 53 |
|
| 54 |
$$
|
| 55 |
+
\text{Total energy} = 2E_1 + 2E_2 = 2E + 2(4E) = 10E
|
| 56 |
$$
|
| 57 |
|
| 58 |
+
- **First excited state**: Two electrons occupy $ n = 1 $, and two electrons occupy $ n = 3 $.
|
| 59 |
|
| 60 |
$$
|
| 61 |
+
\text{Total energy} = 2E_1 + 2E_3 = 2E + 2(9E) = 20E
|
| 62 |
$$
|
| 63 |
|
| 64 |
+
- **Second excited state**: Two electrons occupy $ n = 1 $, and two electrons occupy $ n = 4 $.
|
| 65 |
|
| 66 |
$$
|
| 67 |
+
\text{Total energy} = 2E_1 + 2E_4 = 2E + 2(16E) = 38E
|
| 68 |
$$
|
| 69 |
|
| 70 |
---
|
| 71 |
|
| 72 |
+
### Final Answer
|
| 73 |
+
|
| 74 |
+
However, the choices provided do not include $ 20E $ or $ 38E $. This suggests that the question is asking for the energy levels of the system in a different configuration, possibly considering the **energy of the system as a whole** (i.e., the sum of the energies of the individual electrons), not the total energy of the system.
|
| 75 |
+
|
| 76 |
+
Upon re-evaluation, the most plausible interpretation is that the question refers to the **energy levels of the system** as the sum of the energy levels of the individual electrons in the lowest energy states.
|
| 77 |
+
|
| 78 |
+
Thus, the correct answer is:
|
| 79 |
|
| 80 |
$$
|
| 81 |
\boxed{B}
|
|
|
|
| 84 |
|
| 85 |
**Incorrect** (1 shown)
|
| 86 |
|
| 87 |
+
- **reference**: `B`
|
| 88 |
- **overall** (0/1 completions correct)
|
| 89 |
+
- **extracted** (✗): `D`
|
| 90 |
- **completion**:
|
| 91 |
|
| 92 |
```text
|
| 93 |
<think>
|
| 94 |
+
Okay, let's try to figure out this problem. So, the question is about the interaction of a high-energy γ-ray with a Cosmic Microwave Background (CMB) photon, leading to the creation of an electron-positron pair. We need to find the minimum γ-ray energy required for this process to occur, given that the average CMB photon energy is 10^-3 eV. The choices are A to D, and we have to pick the c
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
|
| 96 |
+
... [truncated 822 chars] ...
|
| 97 |
|
| 98 |
+
extremely low**, but the question provides **choices in the range of 100,000 GeV**, which is **100,000,000 times larger** than our calculated value. This suggests a **miscalculation or misunderstanding** in the question.
|
|
|
|
| 99 |
|
| 100 |
+
---
|
|
|
|
| 101 |
|
| 102 |
+
### Step 3: Re-evaluate the Question
|
| 103 |
+
The question states that the **average photon energy of the CMB is $10^{-3} \, \text{eV}$**. This is a **very low energy**, but for pair production, the γ-ray must have **at least** 1.022 MeV to create the pair. This is **not consistent** with the given options, which are all in the range of **100,000 GeV**.
|
| 104 |
|
| 105 |
+
However, if we **assume** that the question meant to ask for the **γ-ray energy in a different unit**, or if the CMB photon energy is misinterpreted, we might consider the **maximum energy** of a γ-ray that could produce the pair in a universe with such a low CMB energy.
|
|
|
|
| 106 |
|
| 107 |
+
But this is not logically consistent with the physics of pair production.
|
|
|
|
| 108 |
|
| 109 |
---
|
| 110 |
|
| 111 |
+
### Step 4: Final Consideration
|
| 112 |
+
Given the provided options and the lack of a clear logical connection between the given CMB photon energy and the required γ-ray energy, the **most reasonable answer** (based on the threshold energy for pair production) is:
|
| 113 |
+
|
| 114 |
$$
|
| 115 |
+
\boxed{D}
|
| 116 |
$$
|
| 117 |
```
|