Instructions to use NeelM0906/gemma_block_selection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeelM0906/gemma_block_selection with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("NeelM0906/gemma_block_selection", dtype="auto") - llama-cpp-python
How to use NeelM0906/gemma_block_selection with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="NeelM0906/gemma_block_selection", filename="unsloth.Q8_0.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 NeelM0906/gemma_block_selection with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf NeelM0906/gemma_block_selection:Q8_0 # Run inference directly in the terminal: llama-cli -hf NeelM0906/gemma_block_selection:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf NeelM0906/gemma_block_selection:Q8_0 # Run inference directly in the terminal: llama-cli -hf NeelM0906/gemma_block_selection:Q8_0
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 NeelM0906/gemma_block_selection:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf NeelM0906/gemma_block_selection:Q8_0
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 NeelM0906/gemma_block_selection:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf NeelM0906/gemma_block_selection:Q8_0
Use Docker
docker model run hf.co/NeelM0906/gemma_block_selection:Q8_0
- LM Studio
- Jan
- Ollama
How to use NeelM0906/gemma_block_selection with Ollama:
ollama run hf.co/NeelM0906/gemma_block_selection:Q8_0
- Unsloth Studio new
How to use NeelM0906/gemma_block_selection 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 NeelM0906/gemma_block_selection 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 NeelM0906/gemma_block_selection to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for NeelM0906/gemma_block_selection to start chatting
- Docker Model Runner
How to use NeelM0906/gemma_block_selection with Docker Model Runner:
docker model run hf.co/NeelM0906/gemma_block_selection:Q8_0
- Lemonade
How to use NeelM0906/gemma_block_selection with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull NeelM0906/gemma_block_selection:Q8_0
Run and chat with the model
lemonade run user.gemma_block_selection-Q8_0
List all available models
lemonade list
(Trained with Unsloth)
Browse files- config.json +2 -35
config.json
CHANGED
|
@@ -1,36 +1,3 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
"Gemma2ForCausalLM"
|
| 5 |
-
],
|
| 6 |
-
"attention_bias": false,
|
| 7 |
-
"attention_dropout": 0.0,
|
| 8 |
-
"attn_logit_softcapping": 50.0,
|
| 9 |
-
"bos_token_id": 2,
|
| 10 |
-
"cache_implementation": "hybrid",
|
| 11 |
-
"eos_token_id": 1,
|
| 12 |
-
"final_logit_softcapping": 30.0,
|
| 13 |
-
"head_dim": 256,
|
| 14 |
-
"hidden_act": "gelu_pytorch_tanh",
|
| 15 |
-
"hidden_activation": "gelu_pytorch_tanh",
|
| 16 |
-
"hidden_size": 3584,
|
| 17 |
-
"initializer_range": 0.02,
|
| 18 |
-
"intermediate_size": 14336,
|
| 19 |
-
"max_position_embeddings": 8192,
|
| 20 |
-
"model_type": "gemma2",
|
| 21 |
-
"num_attention_heads": 16,
|
| 22 |
-
"num_hidden_layers": 42,
|
| 23 |
-
"num_key_value_heads": 8,
|
| 24 |
-
"pad_token_id": 0,
|
| 25 |
-
"query_pre_attn_scalar": 256,
|
| 26 |
-
"rms_norm_eps": 1e-06,
|
| 27 |
-
"rope_scaling": null,
|
| 28 |
-
"rope_theta": 10000.0,
|
| 29 |
-
"sliding_window": 4096,
|
| 30 |
-
"sliding_window_size": 4096,
|
| 31 |
-
"torch_dtype": "float16",
|
| 32 |
-
"transformers_version": "4.44.2",
|
| 33 |
-
"unsloth_version": "2024.8",
|
| 34 |
-
"use_cache": true,
|
| 35 |
-
"vocab_size": 256000
|
| 36 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_type": "gemma2"
|
| 3 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|