Instructions to use prithivMLmods/MegaScience-Qwen-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/MegaScience-Qwen-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/MegaScience-Qwen-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/MegaScience-Qwen-GGUF", dtype="auto") - llama-cpp-python
How to use prithivMLmods/MegaScience-Qwen-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="prithivMLmods/MegaScience-Qwen-GGUF", filename="Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.BF16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use prithivMLmods/MegaScience-Qwen-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/MegaScience-Qwen-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/MegaScience-Qwen-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/MegaScience-Qwen-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/MegaScience-Qwen-GGUF 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 "prithivMLmods/MegaScience-Qwen-GGUF" \ --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": "prithivMLmods/MegaScience-Qwen-GGUF", "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 "prithivMLmods/MegaScience-Qwen-GGUF" \ --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": "prithivMLmods/MegaScience-Qwen-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use prithivMLmods/MegaScience-Qwen-GGUF with Ollama:
ollama run hf.co/prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
- Unsloth Studio
How to use prithivMLmods/MegaScience-Qwen-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for prithivMLmods/MegaScience-Qwen-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for prithivMLmods/MegaScience-Qwen-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prithivMLmods/MegaScience-Qwen-GGUF to start chatting
- Pi
How to use prithivMLmods/MegaScience-Qwen-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use prithivMLmods/MegaScience-Qwen-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use prithivMLmods/MegaScience-Qwen-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/MegaScience-Qwen-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/MegaScience-Qwen-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.MegaScience-Qwen-GGUF-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +13 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.BF16.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.F16.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.F32.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q2_K.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q3_K_L.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q3_K_M.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q3_K_S.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q4_K_M.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q4_K_S.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q5_K_M.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q5_K_S.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q6_K.gguf +3 -0
- Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,16 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.F32.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5643c98d9460af7aabdb7a4838d088ae4afcd4bd22531bbbf6b0454b91dbd2f8
|
| 3 |
+
size 3093668768
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a3a2692eacb617b6a727e6d514b11f849d4208b5526053e7f054122aacd4bd51
|
| 3 |
+
size 3093668768
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.F32.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cbe692f210fb8cc9ad9022c936ecf95d20d52cd427bc7eb276b1894a70a0d422
|
| 3 |
+
size 6180807584
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b186a7d87173a3b83b685b485506443bff4ce742fd13fff6771c9acb90b5115d
|
| 3 |
+
size 676304288
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a4ed5d8aac22a0b4744d0728828ec53fd03a9be2c776a4772912aada3aad2f1a
|
| 3 |
+
size 880162208
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3deeda7278a2117314b3fca182cf0fd614d6971ecfd7753c6ec9c6d765799d6f
|
| 3 |
+
size 824178080
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19cd511bc3e213b98707f6d2c140fafaf99c7db25ebd2b2a4d04975eb8ef81aa
|
| 3 |
+
size 760944032
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:95afdc911d8878720c30d77d27ccd5c475e2d02f73a9edc578eedcc8cd58adc7
|
| 3 |
+
size 986047904
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:145e07ea8fce15cf3ebd957adb77d3e6517fbfdf30739cd23926dc057b1a139d
|
| 3 |
+
size 940311968
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da82289d5a2c666f6dc16154e6355faa04120d92679175ffbfb97049124f39dd
|
| 3 |
+
size 1125049760
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a3783e403c962b134fdc7710402aebe8b392a67e12fd7bb0317bfdcb6e31945
|
| 3 |
+
size 1098728864
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:031d098d4e45d8af416535ad2c59344ef56e75277d3e13db3b1b39b11ee8bfc3
|
| 3 |
+
size 1272739232
|
Qwen2.5-1.5B-MegaScience/Qwen2.5-1.5B-MegaScience.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9008542ae1d93ac8a359b185e1a427e983acca6856570cd1c11feeb144b7260f
|
| 3 |
+
size 1646572448
|