Instructions to use Jaiccc/model_0_streaming_timestamp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps
- Unsloth Studio new
How to use Jaiccc/model_0_streaming_timestamp 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 Jaiccc/model_0_streaming_timestamp 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 Jaiccc/model_0_streaming_timestamp to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Jaiccc/model_0_streaming_timestamp to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Jaiccc/model_0_streaming_timestamp", max_seq_length=2048, )
File size: 3,253 Bytes
bad2642 b2cb6b3 bad2642 b2cb6b3 bad2642 b2cb6b3 bad2642 b2cb6b3 2a89f09 b2cb6b3 bad2642 b2cb6b3 bad2642 b2cb6b3 bad2642 b2cb6b3 bad2642 b2cb6b3 bad2642 b2cb6b3 bad2642 b2cb6b3 bad2642 b2cb6b3 bad2642 b2cb6b3 bad2642 b2cb6b3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | ---
tags:
- unsloth
- code
license: mit
metrics:
- accuracy
base_model:
- microsoft/phi-4
pipeline_tag: text-classification
---
# Model Card: Streaming Terminal Log Boundary Predictor (Phi-4 LoRA)
## 🤖 Model Details
* **Base Model:** `unsloth/Phi-4-unsloth-bnb-4bit` (14B Parameters)
* **Architecture:** LoRA Adapters (PEFT)
* **Task:** Binary Classification (Terminal Event Boundary Detection)
* **Quantization:** 4-bit (bitsandbytes)
* **Language:** English / Bash / Terminal XML
## 🎯 Intended Use
This model serves as **"Model 0"** for the Winter 2026 iteration of the **AutoDocs** project. Its primary function is to segment a continuous XML input file into
distinct, logical events.
The link to the project can be found here:
[AutoDocs (Winter 2026) Repository](https://github.com/CSC392-CSC492-Building-AI-ML-systems/AutoDocs-Winter2026/tree/main)
Specifically, this model is engineered to process continuous, timestamped terminal logs formatted in XML and determine if a specific line represents a **"Boundary."**
Would you like me to add this to the very top of your Dataset Card or under a specific sectio
* **New Event:** The start of a new phase (e.g., a new user prompt appearing, or a transition from downloading to extracting).
* **Old Event:** A continuation of an ongoing process or a user keystroke (e.g., pressing Enter).
## 🗂️ Training Data
The model was fine-tuned on the **[Jaiccc/model0_boundary_predict_streaming](https://huggingface.co/datasets/Jaiccc/model0_boundary_predict_streaming)** dataset.
The data utilizes a **sliding-window context of 15 chunks**:
* 14 chunks of historical context.
* 1 Target chunk to classify.
* Heavily imbalanced data was downsampled to a 2:1 (Old:New) ratio to prevent majority-class guessing.
## 💻 How to Use (Inference)
```python
import re
from unsloth import FastLanguageModel
from google.colab import userdata
# 1. Retrieve your secure token
hf_token = userdata.get('HF_TOKEN') # Or os.getenv("HF_TOKEN")
# 2. Load the Fine-Tuned Model
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "Jaiccc/model_0_streaming_timestamp",
max_seq_length = 4096,
load_in_4bit = True,
token = hf_token,
)
FastLanguageModel.for_inference(model)
# 3. Format your prompt (ChatML)
instruction = "Your task is to analyze terminal XML logs and determine whether the timestamp in the TARGET LINE belongs to a 'new event' or an 'old event'."
input_data = "### CONTEXT (Previous Events):\n<system_output timestamp=\"10.01\">demo@server:~$ apt update</system_output>\n\n### TARGET LINE:\n<user_input timestamp=\"12.40\">s</user_input>"
prompt = f"<|im_start|>user<|im_sep|>{instruction}\n\n{input_data}<|im_end|><|im_start|>assistant<|im_sep|>"
inputs = tokenizer(prompt, return_tensors="pt").input_ids.to("cuda")
# 4. Generate Prediction
outputs = model.generate(input_ids=inputs, max_new_tokens=64, use_cache=True, temperature=0.1)
raw_output = tokenizer.batch_decode(outputs, clean_up_tokenization_spaces=True)[0]
# 5. Extract Result
m = re.search(r'<\|im_start\|>assistant<\|im_sep\|>(.*?)<\|im_end\|>', raw_output, re.S)
result = m.group(1).strip() if m else raw_output.split("assistant")[-1].strip()
print(result)
# Expected Output: "12.40, old event" |