Instructions to use iplaystuff/baguette-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use iplaystuff/baguette-model with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="iplaystuff/baguette-model", filename="trained_model.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use iplaystuff/baguette-model with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf iplaystuff/baguette-model # Run inference directly in the terminal: llama-cli -hf iplaystuff/baguette-model
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf iplaystuff/baguette-model # Run inference directly in the terminal: llama-cli -hf iplaystuff/baguette-model
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 iplaystuff/baguette-model # Run inference directly in the terminal: ./llama-cli -hf iplaystuff/baguette-model
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 iplaystuff/baguette-model # Run inference directly in the terminal: ./build/bin/llama-cli -hf iplaystuff/baguette-model
Use Docker
docker model run hf.co/iplaystuff/baguette-model
- LM Studio
- Jan
- Ollama
How to use iplaystuff/baguette-model with Ollama:
ollama run hf.co/iplaystuff/baguette-model
- Unsloth Studio new
How to use iplaystuff/baguette-model 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 iplaystuff/baguette-model 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 iplaystuff/baguette-model to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for iplaystuff/baguette-model to start chatting
- Docker Model Runner
How to use iplaystuff/baguette-model with Docker Model Runner:
docker model run hf.co/iplaystuff/baguette-model
- Lemonade
How to use iplaystuff/baguette-model with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull iplaystuff/baguette-model
Run and chat with the model
lemonade run user.baguette-model-{{QUANT_TAG}}List all available models
lemonade list
| { | |
| "_num_labels": 1, | |
| "activation_function": "gelu_new", | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "GPT2LMHeadModel" | |
| ], | |
| "attn_pdrop": 0.1, | |
| "bos_token_id": 50256, | |
| "dtype": "float32", | |
| "embd_pdrop": 0.1, | |
| "eos_token_id": 50256, | |
| "id2label": { | |
| "0": "LABEL_0" | |
| }, | |
| "initializer_range": 0.02, | |
| "label2id": { | |
| "LABEL_0": 0 | |
| }, | |
| "layer_norm_epsilon": 1e-05, | |
| "model_type": "gpt2", | |
| "n_ctx": 1024, | |
| "n_embd": 768, | |
| "n_head": 12, | |
| "n_inner": null, | |
| "n_layer": 6, | |
| "n_positions": 1024, | |
| "pad_token_id": null, | |
| "reorder_and_upcast_attn": false, | |
| "resid_pdrop": 0.1, | |
| "scale_attn_by_inverse_layer_idx": false, | |
| "scale_attn_weights": true, | |
| "summary_activation": null, | |
| "summary_first_dropout": 0.1, | |
| "summary_proj_to_labels": true, | |
| "summary_type": "cls_index", | |
| "summary_use_proj": true, | |
| "task_specific_params": { | |
| "text-generation": { | |
| "do_sample": true, | |
| "max_length": 50 | |
| } | |
| }, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.3.0", | |
| "use_cache": false, | |
| "vocab_size": 50257 | |
| } | |