Instructions to use JuneoAI/Laplace-1-Vector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JuneoAI/Laplace-1-Vector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JuneoAI/Laplace-1-Vector", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("JuneoAI/Laplace-1-Vector", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JuneoAI/Laplace-1-Vector with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JuneoAI/Laplace-1-Vector" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JuneoAI/Laplace-1-Vector", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/JuneoAI/Laplace-1-Vector
- SGLang
How to use JuneoAI/Laplace-1-Vector 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 "JuneoAI/Laplace-1-Vector" \ --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": "JuneoAI/Laplace-1-Vector", "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 "JuneoAI/Laplace-1-Vector" \ --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": "JuneoAI/Laplace-1-Vector", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use JuneoAI/Laplace-1-Vector with Docker Model Runner:
docker model run hf.co/JuneoAI/Laplace-1-Vector
MLX builds for Apple Silicon (8/6/4-bit + bf16)
Hi, and thank you for releasing Laplace-1-Vector with open weights.
We converted it to MLX for Apple Silicon, from revision 06cea7d. The builds run in stock mlx-lm (0.32 and newer support the spark2_5 architecture natively), and each card includes your score_candidates helper ported to MLX with your prompt:
- 6-bit (3.3 GB): https://huggingface.co/netprojects/Laplace-1-Vector-MLX-6bit
- 8-bit (4.4 GB): https://huggingface.co/netprojects/Laplace-1-Vector-MLX-8bit
- 4-bit (2.3 GB): https://huggingface.co/netprojects/Laplace-1-Vector-MLX-4bit
- bf16 (8.2 GB): https://huggingface.co/netprojects/Laplace-1-Vector-MLX-bf16
Against your model code in float32, the bf16 build picks the same next token on 99.6% of test positions, and every build picks the same candidate on our 16 scoring cases. On the 231 public JevBench items in candidate-scoring mode, on a MacBook Pro M5 Max: bf16 78.8%, 8-bit 79.7%, 6-bit 79.2%, 4-bit 78.4%. These come from our own harness, so they are not directly comparable with the figure on your card.
The builds are Apache-2.0 with your LICENSE and a NOTICE crediting Juneo Lab and XHToken. They are published by NetProjects, and we are not affiliated with Juneo Lab or XHToken. If you would like anything changed on the cards, please tell us here.
Paris Michalas, NetProjects