CrabInHoney / urlbert-tiny-base-v4

huggingface.co
Total runs: 228
24-hour runs: -27
7-day runs: -151
30-day runs: -132
Model's Last Updated: January 26 2026
fill-mask

Introduction of urlbert-tiny-base-v4

Model Details of urlbert-tiny-base-v4

urlbert-tiny-base-v4 is a lightweight BERT-based model specifically optimized for URL analysis. This version includes several improvements over the previous version:

  • Trained using a teacher-student architecture
  • Utilized masked token prediction as the primary pre-training task
  • Incorporated knowledge distillation from a larger model's logits
  • Additional training on 3 specialized tasks to enhance URL structure understanding

The result is an efficient model that can be rapidly fine-tuned for URL classification tasks with minimal computational resources.

Model Details
Usage Example
from transformers import BertTokenizerFast, BertForMaskedLM, pipeline
import torch

device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
print(f"Device: {device}")

model_name = "CrabInHoney/urlbert-tiny-base-v4"

tokenizer = BertTokenizerFast.from_pretrained(model_name)
model = BertForMaskedLM.from_pretrained(model_name)
model.to(device)

fill_mask = pipeline(
    "fill-mask",
    model=model,
    tokenizer=tokenizer,
    device=0 if torch.cuda.is_available() else -1
)

sentences = [
    "http://example.[MASK]/"
]

for sentence in sentences:
    print(f"\nInput: {sentence}")
    results = fill_mask(sentence)
    for result in results:
        token_str = result['token_str']
        score = result['score']
        print(f"Predicted token: {token_str}, probability: {score:.4f}")
Sample Output
Input: http://example.[MASK]/

Predicted token: com, probability: 0.7307
Predicted token: net, probability: 0.1319
Predicted token: org, probability: 0.0881
Predicted token: info, probability: 0.0094
Predicted token: cn, probability: 0.0084

Runs of CrabInHoney urlbert-tiny-base-v4 on huggingface.co

228
Total runs
-27
24-hour runs
-31
3-day runs
-151
7-day runs
-132
30-day runs

More Information About urlbert-tiny-base-v4 huggingface.co Model

More urlbert-tiny-base-v4 license Visit here:

https://choosealicense.com/licenses/apache-2.0

urlbert-tiny-base-v4 huggingface.co

urlbert-tiny-base-v4 huggingface.co is an AI model on huggingface.co that provides urlbert-tiny-base-v4's model effect (), which can be used instantly with this CrabInHoney urlbert-tiny-base-v4 model. huggingface.co supports a free trial of the urlbert-tiny-base-v4 model, and also provides paid use of the urlbert-tiny-base-v4. Support call urlbert-tiny-base-v4 model through api, including Node.js, Python, http.

urlbert-tiny-base-v4 huggingface.co Url

https://huggingface.co/CrabInHoney/urlbert-tiny-base-v4

CrabInHoney urlbert-tiny-base-v4 online free

urlbert-tiny-base-v4 huggingface.co is an online trial and call api platform, which integrates urlbert-tiny-base-v4's modeling effects, including api services, and provides a free online trial of urlbert-tiny-base-v4, you can try urlbert-tiny-base-v4 online for free by clicking the link below.

CrabInHoney urlbert-tiny-base-v4 online free url in huggingface.co:

https://huggingface.co/CrabInHoney/urlbert-tiny-base-v4

urlbert-tiny-base-v4 install

urlbert-tiny-base-v4 is an open source model from GitHub that offers a free installation service, and any user can find urlbert-tiny-base-v4 on GitHub to install. At the same time, huggingface.co provides the effect of urlbert-tiny-base-v4 install, users can directly use urlbert-tiny-base-v4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

urlbert-tiny-base-v4 install url in huggingface.co:

https://huggingface.co/CrabInHoney/urlbert-tiny-base-v4

Url of urlbert-tiny-base-v4

urlbert-tiny-base-v4 huggingface.co Url

Provider of urlbert-tiny-base-v4 huggingface.co

CrabInHoney
ORGANIZATIONS

Other API from CrabInHoney