Instructions to use llmware/slim-extract-tiny-tool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use llmware/slim-extract-tiny-tool with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("llmware/slim-extract-tiny-tool", dtype="auto") - llama-cpp-python
How to use llmware/slim-extract-tiny-tool with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="llmware/slim-extract-tiny-tool", filename="tiny-extract.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 llmware/slim-extract-tiny-tool with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf llmware/slim-extract-tiny-tool # Run inference directly in the terminal: llama-cli -hf llmware/slim-extract-tiny-tool
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf llmware/slim-extract-tiny-tool # Run inference directly in the terminal: llama-cli -hf llmware/slim-extract-tiny-tool
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 llmware/slim-extract-tiny-tool # Run inference directly in the terminal: ./llama-cli -hf llmware/slim-extract-tiny-tool
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 llmware/slim-extract-tiny-tool # Run inference directly in the terminal: ./build/bin/llama-cli -hf llmware/slim-extract-tiny-tool
Use Docker
docker model run hf.co/llmware/slim-extract-tiny-tool
- LM Studio
- Jan
- Ollama
How to use llmware/slim-extract-tiny-tool with Ollama:
ollama run hf.co/llmware/slim-extract-tiny-tool
- Unsloth Studio new
How to use llmware/slim-extract-tiny-tool 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 llmware/slim-extract-tiny-tool 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 llmware/slim-extract-tiny-tool to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for llmware/slim-extract-tiny-tool to start chatting
- Docker Model Runner
How to use llmware/slim-extract-tiny-tool with Docker Model Runner:
docker model run hf.co/llmware/slim-extract-tiny-tool
- Lemonade
How to use llmware/slim-extract-tiny-tool with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull llmware/slim-extract-tiny-tool
Run and chat with the model
lemonade run user.slim-extract-tiny-tool-{{QUANT_TAG}}List all available models
lemonade list
Upload config.json
Browse files- config.json +89 -0
config.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"aib_version": "model_archive_061224_tl_extract_0",
|
| 3 |
+
"training_dataset": [
|
| 4 |
+
"extract_tl_061224_eos_9442.jsonl"
|
| 5 |
+
],
|
| 6 |
+
"training_timestamp": "Wed Jun 12 06:28:19 2024",
|
| 7 |
+
"training_comments": "tl-extract-061224-0",
|
| 8 |
+
"vocab_size": 32000,
|
| 9 |
+
"max_position_embeddings": 2048,
|
| 10 |
+
"hidden_size": 2048,
|
| 11 |
+
"intermediate_size": 5632,
|
| 12 |
+
"num_hidden_layers": 22,
|
| 13 |
+
"num_attention_heads": 32,
|
| 14 |
+
"num_key_value_heads": 4,
|
| 15 |
+
"hidden_act": "silu",
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"rms_norm_eps": 1e-05,
|
| 18 |
+
"pretraining_tp": 1,
|
| 19 |
+
"use_cache": true,
|
| 20 |
+
"rope_theta": 10000.0,
|
| 21 |
+
"rope_scaling": null,
|
| 22 |
+
"attention_bias": false,
|
| 23 |
+
"attention_dropout": 0.0,
|
| 24 |
+
"return_dict": true,
|
| 25 |
+
"output_hidden_states": false,
|
| 26 |
+
"output_attentions": false,
|
| 27 |
+
"torchscript": false,
|
| 28 |
+
"torch_dtype": "float32",
|
| 29 |
+
"use_bfloat16": false,
|
| 30 |
+
"tf_legacy_loss": false,
|
| 31 |
+
"pruned_heads": {},
|
| 32 |
+
"tie_word_embeddings": false,
|
| 33 |
+
"chunk_size_feed_forward": 0,
|
| 34 |
+
"is_encoder_decoder": false,
|
| 35 |
+
"is_decoder": false,
|
| 36 |
+
"cross_attention_hidden_size": null,
|
| 37 |
+
"add_cross_attention": false,
|
| 38 |
+
"tie_encoder_decoder": false,
|
| 39 |
+
"max_length": 20,
|
| 40 |
+
"min_length": 0,
|
| 41 |
+
"do_sample": false,
|
| 42 |
+
"early_stopping": false,
|
| 43 |
+
"num_beams": 1,
|
| 44 |
+
"num_beam_groups": 1,
|
| 45 |
+
"diversity_penalty": 0.0,
|
| 46 |
+
"temperature": 1.0,
|
| 47 |
+
"top_k": 50,
|
| 48 |
+
"top_p": 1.0,
|
| 49 |
+
"typical_p": 1.0,
|
| 50 |
+
"repetition_penalty": 1.0,
|
| 51 |
+
"length_penalty": 1.0,
|
| 52 |
+
"no_repeat_ngram_size": 0,
|
| 53 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 54 |
+
"bad_words_ids": null,
|
| 55 |
+
"num_return_sequences": 1,
|
| 56 |
+
"output_scores": false,
|
| 57 |
+
"return_dict_in_generate": false,
|
| 58 |
+
"forced_bos_token_id": null,
|
| 59 |
+
"forced_eos_token_id": null,
|
| 60 |
+
"remove_invalid_values": false,
|
| 61 |
+
"exponential_decay_length_penalty": null,
|
| 62 |
+
"suppress_tokens": null,
|
| 63 |
+
"begin_suppress_tokens": null,
|
| 64 |
+
"architectures": [
|
| 65 |
+
"LlamaForCausalLM"
|
| 66 |
+
],
|
| 67 |
+
"finetuning_task": null,
|
| 68 |
+
"id2label": {
|
| 69 |
+
"0": "LABEL_0",
|
| 70 |
+
"1": "LABEL_1"
|
| 71 |
+
},
|
| 72 |
+
"label2id": {
|
| 73 |
+
"LABEL_0": 0,
|
| 74 |
+
"LABEL_1": 1
|
| 75 |
+
},
|
| 76 |
+
"tokenizer_class": null,
|
| 77 |
+
"prefix": null,
|
| 78 |
+
"bos_token_id": 1,
|
| 79 |
+
"pad_token_id": null,
|
| 80 |
+
"eos_token_id": 2,
|
| 81 |
+
"sep_token_id": null,
|
| 82 |
+
"decoder_start_token_id": null,
|
| 83 |
+
"task_specific_params": null,
|
| 84 |
+
"problem_type": null,
|
| 85 |
+
"_name_or_path": "TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T",
|
| 86 |
+
"transformers_version": "4.38.1",
|
| 87 |
+
"model_type": "llama",
|
| 88 |
+
"trained": "custom training"
|
| 89 |
+
}
|