Instructions to use Lazycuber/Janemalion-6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lazycuber/Janemalion-6B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lazycuber/Janemalion-6B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Lazycuber/Janemalion-6B") model = AutoModelForCausalLM.from_pretrained("Lazycuber/Janemalion-6B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Lazycuber/Janemalion-6B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lazycuber/Janemalion-6B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lazycuber/Janemalion-6B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Lazycuber/Janemalion-6B
- SGLang
How to use Lazycuber/Janemalion-6B 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 "Lazycuber/Janemalion-6B" \ --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": "Lazycuber/Janemalion-6B", "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 "Lazycuber/Janemalion-6B" \ --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": "Lazycuber/Janemalion-6B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Lazycuber/Janemalion-6B with Docker Model Runner:
docker model run hf.co/Lazycuber/Janemalion-6B
Upload 6 files
Browse files
pytorch_model-00001-of-00006.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:884d1c16f8a0f8e981e8411566d029092acae094ddc2f66b88470645743647f3
|
| 3 |
+
size 2090858809
|
pytorch_model-00002-of-00006.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ce1ef7561525efff26c13fbeb3db2f30f4fcef4d48981b6c7f6b32996b7f5f2
|
| 3 |
+
size 2080678519
|
pytorch_model-00003-of-00006.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e15390aeec76205f154d093d03c56e22ab01f89f094d55f8bc5a756fd7d439ea
|
| 3 |
+
size 2013569043
|
pytorch_model-00004-of-00006.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:81178a339b145de2d0698a98206cf77e19ab87d5f3e2712a616cc92e598e17a5
|
| 3 |
+
size 2013569043
|
pytorch_model-00005-of-00006.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d6440c306132555871edc5c89396c25900a30a868f088417b178c1e6bd29bc95
|
| 3 |
+
size 2013569043
|
pytorch_model-00006-of-00006.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22b15d0ff8df629f4d21617b759c4398ceb804dbdac2f2660f7db2ff01153e51
|
| 3 |
+
size 1889614331
|