Instructions to use doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF:BF16 # Run inference directly in the terminal: llama cli -hf doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF:BF16
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF:BF16
Use Docker
docker model run hf.co/doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF with Ollama:
ollama run hf.co/doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF:BF16
- Unsloth Desktop
- Docker Model Runner
How to use doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF with Docker Model Runner:
docker model run hf.co/doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF:BF16
- Lemonade
How to use doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull doji-tech/tiny-random-Phi3ForCausalLM-LongRoPE-GGUF:BF16
Run and chat with the model
lemonade run user.tiny-random-Phi3ForCausalLM-LongRoPE-GGUF-BF16
List all available models
lemonade list
- Atomic Chat
tiny-random-Phi3ForCausalLM-LongRoPE-GGUF
A 2-layer Phi3ForCausalLM with random weights and the LongRoPE rope scaling of the long-context Phi-3 models, as GGUF files of llama.cpp, for the tests of the Unity package tools.doji.transformers. Its original context is 12 positions and its context is 48 positions, so a short prompt uses the short factors and generation switches to the long factors. It uses the sentencepiece tokenizer of microsoft/Phi-3-mini-4k-instruct (MIT license). It generates random text.
| File | Tensor types |
|---|---|
model-f32.gguf |
All tensors F32 |
model-bf16.gguf |
Matrices BF16, norms F32 |
model-q8_0.gguf |
Matrices Q8_0, norms F32 |
How the files were made
tools/causal_lm/make_models.py tiny --arch phi3_longrope --no-onnxin the package repository makes the transformers model.convert_hf_to_gguf.pyof llama.cpp (commit244640b7f26e2a7301b27a24edc4f7feaf97d52f) converts it, with--outtype f32,bf16orq8_0. The architecture in the files isphi3. The files hold the factors inrope_factors_shortandrope_factors_long, and the attention factor inphi3.rope.scaling.attn_factor.tools/causal_lm/make_models.py gguf-references --f32writes the reference logits and tokens of the tests.
Usage
using Doji.AI.Transformers;
var model = AutoModelForCausalLM.FromGguf("model-q8_0.gguf");
var tokenizer = AutoTokenizer.FromGguf("model-q8_0.gguf");
- Downloads last month
- 220
8-bit
16-bit
32-bit