XuehangCang commited on
Commit
e8480d6
·
verified ·
1 Parent(s): 73c5e25

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -11
README.md CHANGED
@@ -13,7 +13,7 @@ widget:
13
  content: What is your favorite condiment?
14
  license: other
15
  datasets:
16
- - XuehangCang/Erotic-literature-split
17
  language:
18
  - zh
19
  ---
@@ -22,14 +22,13 @@ language:
22
 
23
  ## Overview
24
 
25
- This model is a fine-tuned version of the `meta-llama/Llama-3.1-8B` using the PEFT (Parameter Efficient Fine-Tuning) approach on a specialized dataset for generating text in the genre of erotic literature. It has been designed to understand and generate text in Chinese related to this specific domain, making it a useful tool for tasks involving creative writing, story generation, or other applications within this genre.
26
-
27
  ## Model Details
28
 
29
  - **Base Model**: `meta-llama/Llama-3.1-8B`
30
  - **Model Type**: Text Generation
31
  - **Language**: Chinese (zh)
32
- - **Fine-Tuning**: The model has been fine-tuned using the `XuehangCang/Erotic-literature-split` dataset which specifically focuses on erotic literature. This allows the model to generate relevant and cohesive content within this genre.
33
 
34
  ## Usage
35
 
@@ -38,16 +37,21 @@ This model is a fine-tuned version of the `meta-llama/Llama-3.1-8B` using the PE
38
  This model can be utilized through the Transformers library. Below is a basic example of how to use this model for text generation:
39
 
40
  ```python
41
- from transformers import pipeline
 
 
 
 
 
 
 
 
 
42
 
43
- # Load the model
44
- generator = pipeline('text-generation', model='your_username/Erotic-literature-model')
45
 
46
- # Generate text
47
- prompt = "在星光熠熠的夜晚,她独自在海边徘徊,思绪纷飞。"
48
- output = generator(prompt, max_length=100, num_return_sequences=1)
49
 
50
- print(output[0]['generated_text'])
51
  ```
52
 
53
  ### Applications
 
13
  content: What is your favorite condiment?
14
  license: other
15
  datasets:
16
+ - XuehangCang/Erotic-literature
17
  language:
18
  - zh
19
  ---
 
22
 
23
  ## Overview
24
 
25
+ This model is a fine-tuned version of the `meta-llama/Llama-3.1-8B`, using the SFT approach on the [XuehangCang/Erotic-literature](https://huggingface.co/datasets/XuehangCang/Erotic-literature) dataset. It's specifically crafted to understand and generate text in Chinese related to the erotic literature genre. This makes it an invaluable tool for tasks involving creative writing, story generation, or other applications within this specific domain.
 
26
  ## Model Details
27
 
28
  - **Base Model**: `meta-llama/Llama-3.1-8B`
29
  - **Model Type**: Text Generation
30
  - **Language**: Chinese (zh)
31
+ - **Fine-Tuning**: The model has been fine-tuned using the `XuehangCang/Erotic-literature` dataset which specifically focuses on erotic literature. This allows the model to generate relevant and cohesive content within this genre.
32
 
33
  ## Usage
34
 
 
37
  This model can be utilized through the Transformers library. Below is a basic example of how to use this model for text generation:
38
 
39
  ```python
40
+ import transformers
41
+ import torch
42
+
43
+ model_id = "XuehangCang/autotrain-fgk68-62aj5"
44
+
45
+ pipeline = transformers.pipeline(
46
+ "text-generation", model=model_id, model_kwargs={"torch_dtype": torch.bfloat16}, device_map="auto"
47
+ )
48
+
49
+ print(pipeline("在星光熠熠的夜晚,她独自在海边徘徊,思绪纷飞。", max_length=150))
50
 
51
+ """
 
52
 
53
+ """
 
 
54
 
 
55
  ```
56
 
57
  ### Applications