Instructions to use moxin-org/Moxin-7B-LLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use moxin-org/Moxin-7B-LLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="moxin-org/Moxin-7B-LLM")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("moxin-org/Moxin-7B-LLM") model = AutoModelForCausalLM.from_pretrained("moxin-org/Moxin-7B-LLM") - llama-cpp-python
How to use moxin-org/Moxin-7B-LLM with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="moxin-org/Moxin-7B-LLM", filename="moxin-7B.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use moxin-org/Moxin-7B-LLM with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf moxin-org/Moxin-7B-LLM # Run inference directly in the terminal: llama-cli -hf moxin-org/Moxin-7B-LLM
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf moxin-org/Moxin-7B-LLM # Run inference directly in the terminal: llama-cli -hf moxin-org/Moxin-7B-LLM
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 moxin-org/Moxin-7B-LLM # Run inference directly in the terminal: ./llama-cli -hf moxin-org/Moxin-7B-LLM
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 moxin-org/Moxin-7B-LLM # Run inference directly in the terminal: ./build/bin/llama-cli -hf moxin-org/Moxin-7B-LLM
Use Docker
docker model run hf.co/moxin-org/Moxin-7B-LLM
- LM Studio
- Jan
- vLLM
How to use moxin-org/Moxin-7B-LLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "moxin-org/Moxin-7B-LLM" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "moxin-org/Moxin-7B-LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/moxin-org/Moxin-7B-LLM
- SGLang
How to use moxin-org/Moxin-7B-LLM 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 "moxin-org/Moxin-7B-LLM" \ --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": "moxin-org/Moxin-7B-LLM", "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 "moxin-org/Moxin-7B-LLM" \ --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": "moxin-org/Moxin-7B-LLM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use moxin-org/Moxin-7B-LLM with Ollama:
ollama run hf.co/moxin-org/Moxin-7B-LLM
- Unsloth Studio
How to use moxin-org/Moxin-7B-LLM 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 moxin-org/Moxin-7B-LLM 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 moxin-org/Moxin-7B-LLM to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for moxin-org/Moxin-7B-LLM to start chatting
- Docker Model Runner
How to use moxin-org/Moxin-7B-LLM with Docker Model Runner:
docker model run hf.co/moxin-org/Moxin-7B-LLM
- Lemonade
How to use moxin-org/Moxin-7B-LLM with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull moxin-org/Moxin-7B-LLM
Run and chat with the model
lemonade run user.Moxin-7B-LLM-{{QUANT_TAG}}List all available models
lemonade list
Adding `safetensors` variant of this model
Browse filesThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert
This new file is equivalent to `pytorch_model.bin` but safe in the sense that
no arbitrary code can be put into it.
These files also happen to load much faster than their pytorch counterpart:
https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb
The widgets on your model page will run using this model even if this is not merged
making sure the file actually works.
If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions
Feel free to ignore this PR.
- pytorch_model-00001.safetensors +3 -0
- pytorch_model-00002.safetensors +3 -0
- pytorch_model-00003.safetensors +3 -0
- pytorch_model-00004.safetensors +3 -0
- pytorch_model-00005.safetensors +3 -0
- pytorch_model-00006.safetensors +3 -0
- pytorch_model-00007.safetensors +3 -0
- pytorch_model-00008.safetensors +3 -0
- pytorch_model-00009.safetensors +3 -0
- pytorch_model-00010.safetensors +3 -0
- pytorch_model-00011.safetensors +3 -0
- pytorch_model-00012.safetensors +3 -0
- pytorch_model-00013.safetensors +3 -0
- pytorch_model-00014.safetensors +3 -0
- pytorch_model-00015.safetensors +3 -0
- pytorch_model-00016.safetensors +3 -0
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7259a599ca118f4a5d341f203e2d90e9cb596d1a73f3463230c85aa172a90b7b
|
| 3 |
+
size 1017136936
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f667187cd1976182a1df208b58584c303f73ca0b6a5ddb7b745a2b7f97b56eb6
|
| 3 |
+
size 1040239280
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0aaccc89929e7ef0d29f034035debacd5250a15c5221d94e54ffa4ee5ebf60d4
|
| 3 |
+
size 1023445232
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:13533449d12b061592eec58a6820ef0c92b801f07c0f41f1d556db4d8f0bb071
|
| 3 |
+
size 989890680
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5aa7bf6cb7b8d21ca6deb58711ab10833feea458ffb683fcf9997c545235cce6
|
| 3 |
+
size 1040239296
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79ad548aa4839f21718047e5b4b13686ab87b2cf2aac1ccd6ba8905ba5004977
|
| 3 |
+
size 1023445248
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1e29c52d35b5b37889a5ef0942ae5a002ce44b3b1720698449b3fdce6fe49cb4
|
| 3 |
+
size 989890696
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a2f0b5f335a8bf727cbca36acb66c0e0aad1db30e26479a84454f29bddc18a0
|
| 3 |
+
size 1040239304
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1874d2dd91f359715b4db91cd4183f9d45cb95d93a16a1b16eeb7d646f3ef953
|
| 3 |
+
size 1023445248
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:91883538de5add1f15f221549ddceaae7b01537c8d25a22d306ffd5dc2fce93c
|
| 3 |
+
size 989890696
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bf1b97514461777decf7d0520fc1293a655a6597fb9eef93f3924bed7146d3e
|
| 3 |
+
size 1040239304
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff92a361bf84409ec3e1973d20bad1b5ec58be02d96dad312ac985fee29a2ad0
|
| 3 |
+
size 1023445248
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de18a83891c64421d556b6063122ef5d0d816cb386c2fe1c5879213888bed7f6
|
| 3 |
+
size 989890696
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da0895055bd2eab5dbb7ed53dec19569290f9adcab98e68492fcde9d7399ad81
|
| 3 |
+
size 1040239304
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e696201a432b7f4c5f2d1e326f7e6fdf8e287eb1afb0b76e8d33c1591d09535e
|
| 3 |
+
size 1023445248
|
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c34c32c5acc1dc3d49c2ef2a5a9568960fd0bdf385b6a477041bb2133b8229f2
|
| 3 |
+
size 933275288
|