xinchen9 commited on
Commit
e4da730
1 Parent(s): 6dc0722

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -3
README.md CHANGED
@@ -1,3 +1,26 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ ---
4
+ ### 1. Model Details
5
+ Introducing xinchen9/llama3-b8-ft, an advanced language model comprising 8 billion parameters. It has been fine-trained based on
6
+ [Meta-Llama-3-8](https://huggingface.co/meta-llama/Meta-Llama-3-8B).
7
+
8
+ There are two steps:
9
+ 1:The llama3-b8 model was fine-tuning on dataset [SlimOrca](https://huggingface.co/datasets/Open-Orca/SlimOrca).
10
+ 2: With CoT distillation.
11
+
12
+ ### 2. How to Use
13
+ Here give some examples of how to use our model.
14
+ #### Text Completion
15
+ ```python
16
+ import torch
17
+ from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
18
+
19
+ model_name = "deepseek-ai/deepseek-llm-7b-base"
20
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
21
+ model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
22
+ model.generation_config = GenerationConfig.from_pretrained(model_name)
23
+ model.generation_config.pad_token_id = model.generation_config.eos_token_id
24
+ ```
25
+ ### 3 Disclaimer
26
+ The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please cosult an attorney before using this model for commercial purposes.