Model Card for Model ID

Model Details

Model Description

This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.

  • Developed by: [Ghaadaabduallah]
  • Funded by [Self-funded/Educational Project]: [More Information Needed]
  • Shared by [Ghaadaabduallah]: [More Information Needed]
  • Model type: [PEFT/LoRA Adapter]
  • Language(s) (NLP): [Arabic (ar)]
  • License: [Microsoft Phi-3 License]
  • Finetuned from model [microsoft/Phi-3-mini-4k-instruct]: [More Information Needed]

Model Sources [optional]

Uses

Direct Use

[More Information Needed]

Downstream Use [optional]

[More Information Needed]

Out-of-Scope Use

[More Information Needed]

Bias, Risks, and Limitations

[More Information Needed]

Recommendations

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.

How to Get Started with the Model

To use this LoRA adapter, you must load the base Phi-3 model and then attach the LoRA weights. import torch from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig from peft import PeftModel

MODEL_NAME = "microsoft/Phi-3-mini-4k-instruct" LORA_ADAPTER = "Ghaadaabduallah/tasleem-phi3-lora-adapter"

bnb_config = BitsAndBytesConfig(load_in_4bit=True)

1. Load the base model with 4-bit quantization

model = AutoModelForCausalLM.from_pretrained( MODEL_NAME, quantization_config=bnb_config, device_map="auto", torch_dtype=torch.float16, )

2. Attach the LoRA adapter weights

model = PeftModel.from_pretrained(model, LORA_ADAPTER) tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)

The model is now ready for inference!

[More Information Needed]

Training Details

Training Data

[More Information Needed]

Training Procedure

Preprocessing [optional]

[More Information Needed]

Training Hyperparameters

  • Training regime: [More Information Needed]

Speeds, Sizes, Times [optional]

[More Information Needed]

Evaluation

Testing Data, Factors & Metrics

Testing Data

[More Information Needed]

Factors

[More Information Needed]

Metrics

[More Information Needed]

Results

[More Information Needed]

Summary

Model Examination [optional]

[More Information Needed]

Environmental Impact

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

  • Hardware Type: [NVIDIA T4]
  • Hours used: [~2 hours]
  • Cloud Provider: [Google Colab / Google Cloud Platform]
  • Compute Region: [More Information Needed]
  • Carbon Emitted: [More Information Needed]

Technical Specifications [optional]

Model Architecture and Objective

[More Information Needed]

Compute Infrastructure

[More Information Needed]

Hardware

[More Information Needed]

Software

[More Information Needed]

Citation [optional]

BibTeX:

[More Information Needed]

APA:

[More Information Needed]

Glossary [optional]

[More Information Needed]

More Information [optional]

[More Information Needed]

Model Card Authors [optional]

[More Information Needed]

Model Card Contact

[More Information Needed]

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for Ghadaalabdullah/tasleem-phi3-lora-adapter