Instructions to use learn-abc/html-model-tinyllama-chat-bnb-4bit-F32-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use learn-abc/html-model-tinyllama-chat-bnb-4bit-F32-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("learn-abc/html-model-tinyllama-chat-bnb-4bit-F32-GGUF", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use learn-abc/html-model-tinyllama-chat-bnb-4bit-F32-GGUF 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 learn-abc/html-model-tinyllama-chat-bnb-4bit-F32-GGUF 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 learn-abc/html-model-tinyllama-chat-bnb-4bit-F32-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for learn-abc/html-model-tinyllama-chat-bnb-4bit-F32-GGUF to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="learn-abc/html-model-tinyllama-chat-bnb-4bit-F32-GGUF", max_seq_length=2048, )
learn-abc/html-model-tinyllama-chat-bnb-4bit-F32-GGUF
This LoRA adapter was converted to GGUF format from learn-abc/html-model-tinyllama-chat-bnb-4bit via the ggml.ai's GGUF-my-lora space.
Refer to the original adapter repository for more details.
Fine-tuned TinyLlama for JSON Extraction (GGUF)
This repository contains a fine-tuned version of the unsloth/tinyllama-chat-bnb-4bit model, specifically trained for extracting product information from HTML snippets and outputting it in a JSON format. This is the GGUF quantized version for use with tools like llama.cpp or other compatible inference engines.
Model Details
- Base Model:
learn-abc/html-model-tinyllama-chat-bnb-4bit - Fine-tuning Method: LoRA (Low-Rank Adaptation)
- Quantization: q4_k_m GGUF
- Trained on: A custom dataset of HTML product snippets and their corresponding JSON representations.
Usage
This model can be used for tasks involving structured data extraction from HTML content using GGUF compatible software.
Downloading and using the GGUF file
You can download the GGUF file directly from the "Files and versions" tab on this repository page.
To use this file with llama.cpp, you generally follow these steps:
- Download
llama.cpp: Clone thellama.cpprepository and build it. Follow the instructions in thellama.cppREADME for building on your specific platform.
Use with llama.cpp
# with cli
llama-cli -m base_model.gguf --lora html-model-tinyllama-chat-bnb-4bit-f32.gguf (...other args)
# with server
llama-server -m base_model.gguf --lora html-model-tinyllama-chat-bnb-4bit-f32.gguf (...other args)
Use python script
Install llama.cpp
pip install llama-cpp-python
Python script to run the model
from llama_cpp import Llama
# Replace with the actual path to your downloaded GGUF file
model_path = "/path/to/your/downloaded/html-model-tinyllama-chat-bnb-4bit-F32-GGUF.gguf"
llm = Llama(model_path=model_path)
prompt = "Extract the product information:\n<div class='product'><h2>iPad Air</h2><span class='price'>$1344</span><span class='category'>audio</span><span class='brand'>Dell</span></div>"
output = llm(prompt, max_tokens=256, temperature=0.7)
print(output["choices"][0]["text"])
To know more about LoRA usage with llama.cpp server, refer to the llama.cpp server documentation.
- Downloads last month
- 17
32-bit
Model tree for learn-abc/html-model-tinyllama-chat-bnb-4bit-F32-GGUF
Base model
unsloth/tinyllama-chat-bnb-4bit