File size: 2,647 Bytes
959a441
 
 
 
 
 
65c8e0b
959a441
 
 
 
931eb65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
title: GPTo1
emoji: 🌍
colorFrom: red
colorTo: yellow
sdk: streamlit
sdk_version: 1.39.0
app_file: app.py
pinned: false
---

# GPTo1: Llama-3.1 70b on Groq for o1-like Reasoning Chains

This Hugging Face Space demonstrates the use of Llama-3.1 70b on Groq to create o1-like reasoning chains, improving output accuracy in AI-generated responses.

## Important Note

This Hugging Face Space is a collaborative project worked on with Alisher (https://github.com/afarhadi99), based on the g1 project created by bklieger-groq. The original GitHub repository can be found at https://github.com/bklieger-groq/g1. We have adapted it for use as a Hugging Face Space and potentially added some additional features.

## How to Use This Space

1. Duplicate this space:
   - Click on the "Duplicate this Space" button at the top right of the page.
   - Choose a name for your duplicated space and click "Duplicate Space".

2. Set up your Groq API key:
   - In your duplicated space, go to the "Settings" tab.
   - Scroll down to the "Repository secrets" section.
   - Click on "New secret".
   - Set the secret name as `GROQ_API_KEY`.
   - Paste your Groq API key as the value.
   - Click "Add secret".

3. Rebuild the space:
   - After adding the API key, go to the "Factory" tab.
   - Click on "Rebuild Space".

4. Use the app:
   - Once the rebuild is complete, go to the "App" tab.
   - You should now see the interface where you can enter queries and get responses.

## Note

Make sure to keep your API key confidential and do not share it with others. Each person should use their own Groq API key when duplicating this space.

## Original Project

This Hugging Face Space is based on the g1 project. For more information, updates, or to contribute to the original project, please visit the GitHub repository:

https://github.com/bklieger-groq/g1

## Acknowledgments

- Special thanks to bklieger-groq for creating the original g1 project that serves as the foundation for this Hugging Face Space.
- This Hugging Face adaptation is a collaborative effort with Alisher Farhadi (https://github.com/afarhadi99).

## Contributing

If you'd like to contribute to this project, please consider contributing to the original GitHub repository. You can submit pull requests or open issues there.

## License

This project is open source and available under the license specified in the original GitHub repository. Please refer to the repository for the most up-to-date license information.

## Configuration Reference

For more information about the Hugging Face Spaces configuration, please refer to:
https://huggingface.co/docs/hub/spaces-config-reference