Text Generation
Transformers
English
Llama-4
transformer
code-generation
c++
computer-science
educational
visual-studio
open-source
student-assistant
Eval Results (legacy)
Instructions to use JSR-0003/Computer-Science_All-Courses-Guru with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JSR-0003/Computer-Science_All-Courses-Guru with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JSR-0003/Computer-Science_All-Courses-Guru")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("JSR-0003/Computer-Science_All-Courses-Guru", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JSR-0003/Computer-Science_All-Courses-Guru with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JSR-0003/Computer-Science_All-Courses-Guru" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JSR-0003/Computer-Science_All-Courses-Guru", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JSR-0003/Computer-Science_All-Courses-Guru
- SGLang
How to use JSR-0003/Computer-Science_All-Courses-Guru 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 "JSR-0003/Computer-Science_All-Courses-Guru" \ --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": "JSR-0003/Computer-Science_All-Courses-Guru", "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 "JSR-0003/Computer-Science_All-Courses-Guru" \ --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": "JSR-0003/Computer-Science_All-Courses-Guru", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use JSR-0003/Computer-Science_All-Courses-Guru with Docker Model Runner:
docker model run hf.co/JSR-0003/Computer-Science_All-Courses-Guru
Update README.md
Browse files
README.md
CHANGED
|
@@ -72,7 +72,6 @@ metrics:
|
|
| 72 |
- f1
|
| 73 |
- exact_match
|
| 74 |
- bleu
|
| 75 |
-
- code_eval
|
| 76 |
library_name: transformers
|
| 77 |
tags:
|
| 78 |
- Llama-4
|
|
@@ -85,33 +84,32 @@ tags:
|
|
| 85 |
- visual-studio
|
| 86 |
- open-source
|
| 87 |
- student-assistant
|
| 88 |
-
|
| 89 |
model-index:
|
| 90 |
- name: CS-AI-LLaMA4-Assistant
|
| 91 |
results:
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
---
|
| 116 |
|
| 117 |
# CS-AI-LLaMA4-Assistant
|
|
|
|
| 72 |
- f1
|
| 73 |
- exact_match
|
| 74 |
- bleu
|
|
|
|
| 75 |
library_name: transformers
|
| 76 |
tags:
|
| 77 |
- Llama-4
|
|
|
|
| 84 |
- visual-studio
|
| 85 |
- open-source
|
| 86 |
- student-assistant
|
|
|
|
| 87 |
model-index:
|
| 88 |
- name: CS-AI-LLaMA4-Assistant
|
| 89 |
results:
|
| 90 |
+
- task:
|
| 91 |
+
type: question-answering
|
| 92 |
+
name: QA (Computer Science)
|
| 93 |
+
dataset:
|
| 94 |
+
name: Multiple CS QA Sets
|
| 95 |
+
type: multiple
|
| 96 |
+
metrics:
|
| 97 |
+
- type: accuracy
|
| 98 |
+
value: 0.04
|
| 99 |
+
- type: f1
|
| 100 |
+
value: 0.07
|
| 101 |
+
- type: exact_match
|
| 102 |
+
value: 0.76
|
| 103 |
+
- task:
|
| 104 |
+
type: text-generation
|
| 105 |
+
name: C++ Code Generation
|
| 106 |
+
dataset:
|
| 107 |
+
name: Combined code datasets
|
| 108 |
+
type: code
|
| 109 |
+
metrics:
|
| 110 |
+
- type: codebleu
|
| 111 |
+
value: 0.73
|
| 112 |
+
new_version: JSR-0003/Computer-Science_All-Courses-Guru
|
| 113 |
---
|
| 114 |
|
| 115 |
# CS-AI-LLaMA4-Assistant
|