hisham1404 commited on
Commit
b923c64
·
verified ·
1 Parent(s): 50c15ab

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -8
README.md CHANGED
@@ -10,7 +10,7 @@ Here’s a draft of the model card with details added based on your description:
10
 
11
  ---
12
 
13
- # Model Card for LLaMA 3.1 8B Model (Finetuned with Unsloth)
14
 
15
  ## Model Summary
16
 
@@ -25,7 +25,6 @@ This model is finetuned from LLaMA 3.1 8B, focusing on improving performance for
25
  - **Developed by:** Hisham
26
  - **Model type:** Transformer-based Language Model (LLaMA 3.1 variant)
27
  - **Language(s) (NLP):** Primarily English, Python-specific vocabulary
28
- - **License:** [More Information Needed]
29
  - **Finetuned from model:** LLaMA 3.1 8B
30
 
31
  ## Uses
@@ -55,8 +54,8 @@ Users (both direct and downstream) should be aware of the risks, biases, and lim
55
  ```python
56
  from transformers import AutoModelForCausalLM, AutoTokenizer
57
 
58
- tokenizer = AutoTokenizer.from_pretrained("path-to-model")
59
- model = AutoModelForCausalLM.from_pretrained("path-to-model")
60
 
61
  # Example usage
62
  inputs = tokenizer("def my_function():", return_tensors="pt")
@@ -66,8 +65,6 @@ print(tokenizer.decode(outputs[0], skip_special_tokens=True))
66
 
67
  ## Training Details
68
 
69
- ### Training Data
70
-
71
  The model was finetuned using **Unsloth** framework.
72
 
73
 
@@ -106,11 +103,11 @@ The model is based on the LLaMA 3.1 8B architecture, which employs multi-head se
106
 
107
  Hisham. (2024). *Finetuning LLaMA 3.1 8B with Unsloth for Python Code Generation*.
108
 
109
- ## More Information [optional]
110
 
111
  For more details on fine-tuning, check out the LLaMA 3.1 model card and Hugging Face documentation.
112
 
113
- ## Model Card Authors [optional]
114
 
115
  Model card authored by Hisham.
116
 
 
10
 
11
  ---
12
 
13
+ # Model Card for LLaMA 3.1 8B Model (Finetuned using Unsloth)
14
 
15
  ## Model Summary
16
 
 
25
  - **Developed by:** Hisham
26
  - **Model type:** Transformer-based Language Model (LLaMA 3.1 variant)
27
  - **Language(s) (NLP):** Primarily English, Python-specific vocabulary
 
28
  - **Finetuned from model:** LLaMA 3.1 8B
29
 
30
  ## Uses
 
54
  ```python
55
  from transformers import AutoModelForCausalLM, AutoTokenizer
56
 
57
+ tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-3.1-8B")
58
+ model = AutoModelForCausalLM.from_pretrained("hisham1404/llama3.1-python-coder")
59
 
60
  # Example usage
61
  inputs = tokenizer("def my_function():", return_tensors="pt")
 
65
 
66
  ## Training Details
67
 
 
 
68
  The model was finetuned using **Unsloth** framework.
69
 
70
 
 
103
 
104
  Hisham. (2024). *Finetuning LLaMA 3.1 8B with Unsloth for Python Code Generation*.
105
 
106
+ ## More Information
107
 
108
  For more details on fine-tuning, check out the LLaMA 3.1 model card and Hugging Face documentation.
109
 
110
+ ## Model Card Authors
111
 
112
  Model card authored by Hisham.
113